diff options
Diffstat (limited to 'test/ruby/test_syntax.rb')
-rw-r--r-- | test/ruby/test_syntax.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb index f247b4c6dc..532b989bbd 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -77,6 +77,12 @@ class TestSyntax < Test::Unit::TestCase end end + def test_keyword_rest + bug5989 = '[ruby-core:42455]' + assert_valid_syntax("def kwrest_test(**a) end", __FILE__) + assert_valid_syntax("def kwrest_test(**a, &b) end", __FILE__) + end + private def make_tmpsrc(f, src) |