diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-02-14 17:04:21 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-02-14 17:04:21 +0900 |
| commit | 007ed07e77be90ec2b5f7e5043dd611540e9f80d (patch) | |
| tree | 73e27d754b86f4cf74d71ea782dc8fbf7a0dc974 /test/t | |
| parent | ba8a8e75c777d29bdbdcea56513d188949f131ec (diff) | |
| parent | 7ab0506795ca8a758043115f88cd8288389835c4 (diff) | |
| download | mruby-007ed07e77be90ec2b5f7e5043dd611540e9f80d.tar.gz mruby-007ed07e77be90ec2b5f7e5043dd611540e9f80d.zip | |
Merge pull request #1708 from Fleurer/cleanup-warning-hash-dup
cleanup warnings in hash.c
Diffstat (limited to 'test/t')
| -rw-r--r-- | test/t/hash.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/t/hash.rb b/test/t/hash.rb index 39f9ae9d8..837fe0216 100644 --- a/test/t/hash.rb +++ b/test/t/hash.rb @@ -34,6 +34,13 @@ assert('Hash#clear', '15.2.13.4.4') do assert_equal({ }, a) end +assert('Hash#dup') do + a = { 'a' => 1 } + b = a.dup + a['a'] = 2 + assert_equal(b, {'a' => 1}) +end + assert('Hash#default', '15.2.13.4.5') do a = Hash.new b = Hash.new('abc') |
