mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Remove duplication in mruby-hash-ext test.
This commit is contained in:
@@ -255,12 +255,6 @@ assert("Hash#dig") do
|
||||
assert_nil(h.dig(:d))
|
||||
end
|
||||
|
||||
assert("Hash#transform_keys") do
|
||||
h = {a:{b:{c:1}}}
|
||||
assert_equal(1, h.dig(:a, :b, :c))
|
||||
assert_nil(h.dig(:d))
|
||||
end
|
||||
|
||||
assert("Hash#transform_keys") do
|
||||
h = {"1" => 100, "2" => 200}
|
||||
assert_equal(h.transform_keys{|k| k+"!"},
|
||||
|
||||
Reference in New Issue
Block a user