summaryrefslogtreecommitdiffhomepage
path: root/test/t
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-06-09 18:27:28 +0900
committerKOBAYASHI Shuji <[email protected]>2019-06-09 18:27:28 +0900
commitffb700dea0a23930e4f620cf5ff9855efa709f9c (patch)
tree1fe3a70a446029831d33570a4bb604fa8ca50886 /test/t
parenta7ae278d1afde6f4caf4e88fb2dbd94401992131 (diff)
downloadmruby-ffb700dea0a23930e4f620cf5ff9855efa709f9c.tar.gz
mruby-ffb700dea0a23930e4f620cf5ff9855efa709f9c.zip
Fix missing assertions in `test/t/syntax.rb`
Diffstat (limited to 'test/t')
-rw-r--r--test/t/syntax.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/t/syntax.rb b/test/t/syntax.rb
index 603547c7c..afb735e7f 100644
--- a/test/t/syntax.rb
+++ b/test/t/syntax.rb
@@ -423,10 +423,11 @@ assert('parenthesed do-block in cmdarg') do
end
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
end
- true
+ assert_equal(:foo, result)
end
assert('optional argument in the rhs default expressions') do