diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-15 14:01:16 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-15 14:01:16 +0000 |
commit | bd31355267f92e1f715e47becddb86d317bf92e9 (patch) | |
tree | 1aa7a7d3ccfe3a98454ac20b2607f19ed89a0c5d /test | |
parent | 79a25170262d4053209fc3c7b198c37cfdecefa5 (diff) | |
download | ruby-bd31355267f92e1f715e47becddb86d317bf92e9.tar.gz |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_syntax.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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 |