diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-06-29 21:38:32 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-06-29 21:38:32 +0900 |
| commit | cf6972408335a69f2f6cc007f74c6afd316d0d96 (patch) | |
| tree | 8ff7194029e1661cdbf67aaf950552e9f08a673b /mrbgems/mruby-bin-mruby/bintest/mruby.rb | |
| parent | ff5ec824fd31bf28e67b0b984d2596a240686cd2 (diff) | |
| parent | a215292b6ad4315a5a0edef49a1df65e3f27b46a (diff) | |
| download | mruby-cf6972408335a69f2f6cc007f74c6afd316d0d96.tar.gz mruby-cf6972408335a69f2f6cc007f74c6afd316d0d96.zip | |
Merge pull request #4540 from dearblue/assert-nesting
Nested `assert` for mrbtest
Diffstat (limited to 'mrbgems/mruby-bin-mruby/bintest/mruby.rb')
| -rw-r--r-- | mrbgems/mruby-bin-mruby/bintest/mruby.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mrbgems/mruby-bin-mruby/bintest/mruby.rb b/mrbgems/mruby-bin-mruby/bintest/mruby.rb index 09350ff49..5dbbc5592 100644 --- a/mrbgems/mruby-bin-mruby/bintest/mruby.rb +++ b/mrbgems/mruby-bin-mruby/bintest/mruby.rb @@ -3,9 +3,11 @@ require 'open3' def assert_mruby(exp_out, exp_err, exp_success, args) out, err, stat = Open3.capture3(cmd("mruby"), *args) - assert_operator(exp_out, :===, out, "standard output") - assert_operator(exp_err, :===, err, "standard error") - assert_equal(exp_success, stat.success?, "exit success?") + assert do + assert_operator(exp_out, :===, out, "standard output") + assert_operator(exp_err, :===, err, "standard error") + assert_equal(exp_success, stat.success?, "exit success?") + end end assert('regression for #1564') do |
