Sha256: 2c20953cbba8257b57dee9bcb87c6e20542124d0f59bfa6a4bfdd65d0ba9e719
Contents?: true
Size: 591 Bytes
Versions: 5
Compression:
Stored size: 591 Bytes
Contents
covers 'facets/array/delete' test_case Array do method :delete_unless do test do a = [1,2,3] a.delete_unless{ |e| e == 2 } a.assert == [2] end end method :delete_values do test do a = [1,2,3,4] a.delete_values(1,2).assert == [1,2] a.assert == [3,4] end end method :delete_values_at do test do a = [1,2,3,4] a.delete_values_at(1,2).assert == [2,3] a.assert == [1,4] end test do a = [1,2,3,4] a.delete_values_at(0..2).assert == [1,2,3] a.assert == [4] end end end
Version data entries
5 entries across 5 versions & 2 rubygems