summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-complex
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-06-29 21:38:32 +0900
committerGitHub <[email protected]>2019-06-29 21:38:32 +0900
commitcf6972408335a69f2f6cc007f74c6afd316d0d96 (patch)
tree8ff7194029e1661cdbf67aaf950552e9f08a673b /mrbgems/mruby-complex
parentff5ec824fd31bf28e67b0b984d2596a240686cd2 (diff)
parenta215292b6ad4315a5a0edef49a1df65e3f27b46a (diff)
downloadmruby-cf6972408335a69f2f6cc007f74c6afd316d0d96.tar.gz
mruby-cf6972408335a69f2f6cc007f74c6afd316d0d96.zip
Merge pull request #4540 from dearblue/assert-nesting
Nested `assert` for mrbtest
Diffstat (limited to 'mrbgems/mruby-complex')
-rw-r--r--mrbgems/mruby-complex/test/complex.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/mrbgems/mruby-complex/test/complex.rb b/mrbgems/mruby-complex/test/complex.rb
index 6996eb214..ab882664e 100644
--- a/mrbgems/mruby-complex/test/complex.rb
+++ b/mrbgems/mruby-complex/test/complex.rb
@@ -1,6 +1,8 @@
def assert_complex(real, exp)
- assert_float real.real, exp.real
- assert_float real.imaginary, exp.imaginary
+ assert do
+ assert_float real.real, exp.real
+ assert_float real.imaginary, exp.imaginary
+ end
end
assert 'Complex' do