summaryrefslogtreecommitdiff
path: root/test/test_cmath.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_cmath.rb')
-rw-r--r--test/test_cmath.rb8
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