1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
mame 2018-01-15 14:01:16 +00:00
parent 79a2517026
commit bd31355267

View file

@ -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