diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-08-18 13:15:34 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-12 16:21:43 +0900 |
| commit | ed32b6fcdc0acc9e70f21a9df8e85d20ec662185 (patch) | |
| tree | 1da98ddce42f008fc9d5ee6cb4a716184631baa4 /mrbgems/mruby-complex | |
| parent | c8cf9512cd80ad3b90cb33c29056f75db5fceb0f (diff) | |
| download | mruby-ed32b6fcdc0acc9e70f21a9df8e85d20ec662185.tar.gz mruby-ed32b6fcdc0acc9e70f21a9df8e85d20ec662185.zip | |
Update tests for integer division.
Diffstat (limited to 'mrbgems/mruby-complex')
| -rw-r--r-- | mrbgems/mruby-complex/test/complex.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-complex/test/complex.rb b/mrbgems/mruby-complex/test/complex.rb index 14711ad73..8f9634048 100644 --- a/mrbgems/mruby-complex/test/complex.rb +++ b/mrbgems/mruby-complex/test/complex.rb @@ -56,8 +56,8 @@ end assert 'Complex#/' do assert_complex Complex(2, 3) / Complex(2, 3) , (1 + 0i) assert_complex Complex(900) / Complex(1) , (900 + 0i) - assert_complex Complex(-2, 9) / Complex(-9, 2), ((36 / 85) - (77i / 85)) - assert_complex Complex(9, 8) / 4 , ((9 / 4) + 2i) + assert_complex Complex(-2, 9) / Complex(-9, 2), ((36.0 / 85) - (77i / 85)) + assert_complex Complex(9, 8) / 4 , ((9.0 / 4) + 2i) assert_complex Complex(20, 9) / 9.8 , (2.0408163265306123 + 0.9183673469387754i) if 1e39.infinite? then # MRB_USE_FLOAT32 in effect |
