summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-05-21 16:06:37 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2019-05-21 21:08:26 +0900
commitf6e4145ad960d9bc748f9c91fd4c5db5afeebbd0 (patch)
tree883e99f43d2748ad299f797e9ecd563e0426f6a0
parentb7f85b9df91168f8c6338354bc50a621ca0e098b (diff)
downloadmruby-f6e4145ad960d9bc748f9c91fd4c5db5afeebbd0.tar.gz
mruby-f6e4145ad960d9bc748f9c91fd4c5db5afeebbd0.zip
Remove `Complex(string)` complex generation.
It should raise an error.
-rw-r--r--mrbgems/mruby-complex/test/complex.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/mrbgems/mruby-complex/test/complex.rb b/mrbgems/mruby-complex/test/complex.rb
index ca58202c2..e7fcc7322 100644
--- a/mrbgems/mruby-complex/test/complex.rb
+++ b/mrbgems/mruby-complex/test/complex.rb
@@ -63,8 +63,6 @@ assert 'Complex#==' do
assert_true Complex(2, 3) == Complex(2, 3)
assert_true Complex(5) == 5
assert_true Complex(0) == 0.0
- assert_false Complex('1/3') == 0.33
- assert_false Complex('1/2') == '1/2'
end
assert 'Complex#abs' do
@@ -127,4 +125,4 @@ assert 'Complex::to_i' do
assert_raise(RangeError) do
Complex(1, 2).to_i
end
-end \ No newline at end of file
+end