Commit ffb700de authored by KOBAYASHI Shuji's avatar KOBAYASHI Shuji

Fix missing assertions in `test/t/syntax.rb`

parent a7ae278d
...@@ -423,10 +423,11 @@ assert('parenthesed do-block in cmdarg') do ...@@ -423,10 +423,11 @@ assert('parenthesed do-block in cmdarg') do
end end
assert('method definition in cmdarg') do assert('method definition in cmdarg') do
if false result = class MethodDefinitionInCmdarg
def self.bar(arg); arg end
bar def foo; self.each do end end bar def foo; self.each do end end
end end
true assert_equal(:foo, result)
end end
assert('optional argument in the rhs default expressions') do assert('optional argument in the rhs default expressions') do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment