diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-09-19 22:01:28 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-09-19 22:02:46 +0900 |
| commit | b6c5e501b370e0758e9f1e224b2dd363df4f0998 (patch) | |
| tree | ba4cf27776838a6a4b45279e234ba233e5ac4358 /mrbgems/mruby-hash-ext/test | |
| parent | 6d1728822d575812cbc0c5c3e181ac0031a75914 (diff) | |
| download | mruby-b6c5e501b370e0758e9f1e224b2dd363df4f0998.tar.gz mruby-b6c5e501b370e0758e9f1e224b2dd363df4f0998.zip | |
Removed `try_convert` method from Array and Hash.
Diffstat (limited to 'mrbgems/mruby-hash-ext/test')
| -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 269da800d..b5d0aaaf8 100644 --- a/mrbgems/mruby-hash-ext/test/hash.rb +++ b/mrbgems/mruby-hash-ext/test/hash.rb @@ -45,12 +45,6 @@ assert('Hash.[] for sub class') do assert_equal(sub_hash_class, sub_hash.class) end -assert('Hash.try_convert') do - assert_nil Hash.try_convert(nil) - assert_nil Hash.try_convert("{1=>2}") - assert_equal({1=>2}, Hash.try_convert({1=>2})) -end - assert('Hash#merge!') do a = { 'abc_key' => 'abc_value', 'cba_key' => 'cba_value' } b = { 'cba_key' => 'XXX', 'xyz_key' => 'xyz_value' } |
