summaryrefslogtreecommitdiff
path: root/test/ruby/test_keyword.rb
diff options
context:
space:
mode:
authorSeiei Miyagi <hanachin@gmail.com>2020-02-03 17:43:03 +0900
committerYusuke Endoh <mame@ruby-lang.org>2020-02-03 17:54:44 +0900
commit11963da9e8e98821860fbb0c0f2adc118860c814 (patch)
tree488c9fc3adf104cb8333e83e904f657cb42ce711 /test/ruby/test_keyword.rb
parenta635c93fdebeda6347b8654af1a191e214ad7ccf (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.rb6
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