spec/code/object/dictionary_spec.rb in code-ruby-0.11.0 vs spec/code/object/dictionary_spec.rb in code-ruby-0.12.0
- old
+ new
@@ -74,13 +74,11 @@
["{ a: 1, b: [2, 3] }.flatten(1)", "[:a, 1, :b, [2, 3]]"],
["{ a: 1, b: [2, 3] }.to_list", "[[:a, 1], [:b, [2, 3]]]"],
["{ a: nothing }.compact", "{}"],
["{ age: 31 }.delete_unless { |key| key == :age }", "{ age: 31 }"],
["{ age: 31 }.delete_unless(Integer)", "{ age: 31 }"],
- ["{ age: 31 }.delete_unless(Number)", "{ age: 31 }"],
["{ age: 31 }.keep_unless { |key| key == :age }", "{}"],
["{ age: 31 }.keep_unless(Integer)", "{}"],
- ["{ age: 31 }.keep_unless(Number)", "{}"],
["{ first_name: :Dorian } < dictionary", "true"],
["{ first_name: :Dorian }.any? { |_, value| value == :Dorian }", "true"],
["{ first_name: :Dorian }.delete_if { |_, value| value == :Dorian }", "{}"],
["{ first_name: :Dorian }.delete_if(String)", "{}"],
["{ first_name: :Dorian }.keep_if { |_, value| value != :Dorian }", "{}"],