From bd31355267f92e1f715e47becddb86d317bf92e9 Mon Sep 17 00:00:00 2001 From: mame Date: Mon, 15 Jan 2018 14:01:16 +0000 Subject: test/ruby/test_syntax.rb (test_command_with_cmd_brace_block): Added The bison rules were not covered. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_syntax.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/ruby') diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb index a1af048a2b..7f42bd5965 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -1191,6 +1191,11 @@ eom assert_valid_syntax('while class Foo a = tap do end; end; break; end') end + def test_command_with_cmd_brace_block + assert_valid_syntax('obj.foo (1) {}') + assert_valid_syntax('obj::foo (1) {}') + end + private def not_label(x) @result = x; @not_label ||= nil end -- cgit v1.2.3