diff options
author | gogotanaka <gogotanaka@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-02-24 23:53:21 +0000 |
---|---|---|
committer | gogotanaka <gogotanaka@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-02-24 23:53:21 +0000 |
commit | 0c3a0d6588c6fe44d43edbc54d3f92553a5a1705 (patch) | |
tree | 61e19adcc91bd07698c23b41e970fa9d6bef4741 /test | |
parent | 0c4631b88013e159a9a13bad158911aad59408c1 (diff) | |
download | ruby-0c3a0d6588c6fe44d43edbc54d3f92553a5a1705.tar.gz |
* lib/cmath.rb (log): raise ArgumentError when more than 2 arguments
are passed. [ruby-core:66143] [Bug #10487]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_complex.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_complex.rb b/test/ruby/test_complex.rb index 3625eb97a5..beccc8e4f3 100644 --- a/test/ruby/test_complex.rb +++ b/test/ruby/test_complex.rb @@ -950,9 +950,9 @@ class Complex_Test < Test::Unit::TestCase assert_in_delta(0.804, c.real, 0.001) assert_in_delta(1.107, c.imag, 0.001) - c = CMath.log(Complex(1, 2), Math::E) - assert_in_delta(0.804, c.real, 0.001) - assert_in_delta(1.107, c.imag, 0.001) + c = CMath.log(Complex(1, 2), Math::E**2) + assert_in_delta(0.402, c.real, 0.001) + assert_in_delta(0.5535, c.imag, 0.001) c = CMath.log(-1) assert_in_delta(0.0, c.real, 0.001) |