Remove duplication in mruby-hash-ext test.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-07-14 16:10:26 +09:00
parent 1c02b8558f
commit 460d628490
-6
View File
@@ -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+"!"},