diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-07-14 16:10:26 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-07-14 16:10:26 +0900 |
| commit | 460d6284906d53adbb722214a82ff717608733b8 (patch) | |
| tree | 09766fdc829e417c56c93cb464a02694ea1ca2e7 /mrbgems/mruby-hash-ext | |
| parent | 1c02b8558fac16608bd853fb45195e932330d3cd (diff) | |
| download | mruby-460d6284906d53adbb722214a82ff717608733b8.tar.gz mruby-460d6284906d53adbb722214a82ff717608733b8.zip | |
Remove duplication in `mruby-hash-ext` test.
Diffstat (limited to 'mrbgems/mruby-hash-ext')
| -rw-r--r-- | mrbgems/mruby-hash-ext/test/hash.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/mrbgems/mruby-hash-ext/test/hash.rb b/mrbgems/mruby-hash-ext/test/hash.rb index 04324665b..5c08212ce 100644 --- a/mrbgems/mruby-hash-ext/test/hash.rb +++ b/mrbgems/mruby-hash-ext/test/hash.rb @@ -256,12 +256,6 @@ assert("Hash#dig") do 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+"!"}, {"1!" => 100, "2!" => 200}) |
