diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-05-22 11:57:43 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-05-22 11:57:43 +0000 |
commit | b53d547f38894962f299442219c2ed5814e63715 (patch) | |
tree | 2b5fd1f4f1fc416d2fd64f1d4a7b3a384c77ca5e /test | |
parent | 46c64caff68dd536eeeaa1c945eb66b886a0721d (diff) |
* complex.c (f_complex_polar): simple bug reproduced only when y is
a float but x is not a float.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_complex.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_complex.rb b/test/ruby/test_complex.rb index beccc8e4f3..3205329a87 100644 --- a/test/ruby/test_complex.rb +++ b/test/ruby/test_complex.rb @@ -212,6 +212,7 @@ class Complex_Test < Test::Unit::TestCase def test_polar assert_equal([1,2], Complex.polar(1,2).polar) + assert_equal(Complex.polar(1.0, Math::PI * 2 / 3), Complex.polar(1, Math::PI * 2 / 3)) end def test_uplus |