aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-15 14:01:16 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-15 14:01:16 +0000
commitbd31355267f92e1f715e47becddb86d317bf92e9 (patch)
tree1aa7a7d3ccfe3a98454ac20b2607f19ed89a0c5d /test/ruby
parent79a25170262d4053209fc3c7b198c37cfdecefa5 (diff)
downloadruby-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/ruby')
-rw-r--r--test/ruby/test_syntax.rb5
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