diff options
author | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-11 14:30:47 +0000 |
---|---|---|
committer | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-11 14:30:47 +0000 |
commit | 9b0b9ac237c60d34c9cd06538d1a133eed9f7130 (patch) | |
tree | 2fa02528f508bc40c50d86e221b40f215650dae6 /test | |
parent | c89bdea7c9ea3776e1a8994590dffd847c61f1df (diff) |
* lib/cmath.rb (CMath.sqrt): use floating-point value. [ruby-core:31672] [Bug #3678]
* test/test_cmath.rb: added for testing lib/cmath.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/test_cmath.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_cmath.rb b/test/test_cmath.rb new file mode 100644 index 0000000000..46a357fab2 --- /dev/null +++ b/test/test_cmath.rb @@ -0,0 +1,8 @@ +require 'test/unit' +require 'cmath' + +class TestCMath < Test::Unit::TestCase + def test_sqrt + assert_equal CMath.sqrt(1.0.i), CMath.sqrt(1.i), '[ruby-core:31672]' + end +end |