diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-05-07 22:50:24 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-05-07 22:50:24 -0700 |
| commit | c80103e89a7ddcbaa7b5fc470358a4bcae327953 (patch) | |
| tree | 4ebbc46f688f1d4c4e81eec715a9314ebb286c73 /mrbgems/mruby-hash-ext/test/hash.rb | |
| parent | 11e70f2191caecfe546f8a97baf284c1cfc25e00 (diff) | |
| parent | c9edc5b02ee07aa2b8caa994910d31273260ca22 (diff) | |
| download | mruby-c80103e89a7ddcbaa7b5fc470358a4bcae327953.tar.gz mruby-c80103e89a7ddcbaa7b5fc470358a4bcae327953.zip | |
Merge pull request #1237 from monaka/pr-cleanup-hash
Cleanup hash
Diffstat (limited to 'mrbgems/mruby-hash-ext/test/hash.rb')
| -rw-r--r-- | mrbgems/mruby-hash-ext/test/hash.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mrbgems/mruby-hash-ext/test/hash.rb b/mrbgems/mruby-hash-ext/test/hash.rb index 98eb313a4..73e12d8f2 100644 --- a/mrbgems/mruby-hash-ext/test/hash.rb +++ b/mrbgems/mruby-hash-ext/test/hash.rb @@ -18,3 +18,9 @@ assert('Hash#merge!') do 'xyz_key' => 'xyz_value' } end +assert('Hash#values_at') do + h = { "cat" => "feline", "dog" => "canine", "cow" => "bovine" } + result = h.values_at("cow", "cat") + + result == ["bovine", "feline"] +end |
