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:
parent
79a2517026
commit
bd31355267
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue