diff options
author | Seiei Miyagi <hanachin@gmail.com> | 2020-02-03 17:43:03 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2020-02-03 17:54:44 +0900 |
commit | 11963da9e8e98821860fbb0c0f2adc118860c814 (patch) | |
tree | 488c9fc3adf104cb8333e83e904f657cb42ce711 /test/ruby/test_keyword.rb | |
parent | a635c93fdebeda6347b8654af1a191e214ad7ccf (diff) |
Check type of empty keyword [Bug #16603]
Co-authored-by: Yusuke Endoh <mame@ruby-lang.org>
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2874
Diffstat (limited to 'test/ruby/test_keyword.rb')
-rw-r--r-- | test/ruby/test_keyword.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_keyword.rb b/test/ruby/test_keyword.rb index 75991ca0b4..db7d696644 100644 --- a/test/ruby/test_keyword.rb +++ b/test/ruby/test_keyword.rb @@ -4076,4 +4076,10 @@ class TestKeywordArgumentsSymProcRefinements < Test::Unit::TestCase mock.new.foo end end + + def test_splat_fixnum + bug16603 = '[ruby-core:97047] [Bug #16603]' + assert_raise(TypeError, bug16603) { p(**42) } + assert_raise(TypeError, bug16603) { p(k:1, **42) } + end end |