diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-04-21 13:14:10 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-04-21 13:21:12 +0900 |
| commit | c181d89c9dca0e722a525b871a82cbd75c59bb80 (patch) | |
| tree | 564331a8ac7af70ede3ad009543b85e6d00ebdce /test | |
| parent | c91c9e2429b31fb2f35ed297152100084531b0cb (diff) | |
| download | mruby-c181d89c9dca0e722a525b871a82cbd75c59bb80.tar.gz mruby-c181d89c9dca0e722a525b871a82cbd75c59bb80.zip | |
`Kernel#clone` and `Kernel#dup` no longer raise `TypeError`; fix #4974
In ISO, those methods should raise `TypeError`, but the spec has been
changed. The change was discussed in [Feature#12979].
Diffstat (limited to 'test')
| -rw-r--r-- | test/t/kernel.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/test/t/kernel.rb b/test/t/kernel.rb index c2eeee1a5..aac6373fa 100644 --- a/test/t/kernel.rb +++ b/test/t/kernel.rb @@ -197,17 +197,6 @@ assert('Kernel#dup', '15.3.1.3.9') do a.set(2) c = a.dup - immutables = [ 1, :foo, true, false, nil ] - error_count = 0 - immutables.each do |i| - begin - i.dup - rescue TypeError - error_count += 1 - end - end - - assert_equal immutables.size, error_count assert_equal 2, a.get assert_equal 1, b.get assert_equal 2, c.get |
