diff options
author | Akinori MUSHA <knu@idaemons.org> | 2023-02-24 17:37:00 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-02-24 11:48:08 +0000 |
commit | 5d5ff6e5eda887b39691db4db58ac1c2c3a1f8d9 (patch) | |
tree | 34faf437b3fe0ff1d4ef3e576d37b20399591640 /test/test_set.rb | |
parent | 454ac4cbb22fdae44a75cef1412693e4fb526630 (diff) | |
download | ruby-5d5ff6e5eda887b39691db4db58ac1c2c3a1f8d9.tar.gz |
[ruby/set] Set#merge does not take keyword arguments as a Hash
https://github.com/ruby/set/commit/ca1c9532a9
Diffstat (limited to 'test/test_set.rb')
-rw-r--r-- | test/test_set.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_set.rb b/test/test_set.rb index e2a0f88f5b..49dc58ef7b 100644 --- a/test/test_set.rb +++ b/test/test_set.rb @@ -600,6 +600,10 @@ class TC_Set < Test::Unit::TestCase ret = set.merge([2,4,6], Set[4,5,6]) assert_same(set, ret) assert_equal(Set[1,2,3,4,5,6], set) + + assert_raise(ArgumentError) { + Set[].merge(a: 1) + } end def test_subtract |