Sha256: d30a83899e36bf3fc3e90b51e6ca3dcf3cdf3d776e7af085e963dfc90b281b3b
Contents?: true
Size: 366 Bytes
Versions: 3
Compression:
Stored size: 366 Bytes
Contents
require "spec_helper" describe Array do describe "#delete_values" do it do a = (1..4).to_a expect(a.delete_values(1, 3)).to eq([1, 3]) expect(a).to eq([2, 4]) end end describe "#delete_values_at" do it do a = (1..4).to_a expect(a.delete_values_at(0, 2)).to eq([1, 3]) expect(a).to eq([2, 4]) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tagen-2.0.2 | spec/tagen/core/array/delete_values_spec.rb |
tagen-2.0.1 | spec/tagen/core/array/delete_values_spec.rb |
tagen-2.0.0 | spec/tagen/core/array/delete_values_spec.rb |