diff options
| author | KOBAYASHI Shuji <[email protected]> | 2019-06-09 18:27:28 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2019-06-09 18:27:28 +0900 |
| commit | ffb700dea0a23930e4f620cf5ff9855efa709f9c (patch) | |
| tree | 1fe3a70a446029831d33570a4bb604fa8ca50886 | |
| parent | a7ae278d1afde6f4caf4e88fb2dbd94401992131 (diff) | |
| download | mruby-ffb700dea0a23930e4f620cf5ff9855efa709f9c.tar.gz mruby-ffb700dea0a23930e4f620cf5ff9855efa709f9c.zip | |
Fix missing assertions in `test/t/syntax.rb`
| -rw-r--r-- | test/t/syntax.rb | 5 |
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 |
