summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-03 12:31:26 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-03 12:31:26 +0000
commit0d2d098660566761019c8d5ffbeafd0444d0605c (patch)
treee0e08ba897922ad81996504005c7e12ff3a2fbd6 /test/ruby
parentbac1841a9382494fcc1bad5d982aa8677091a544 (diff)
* complex.c (nucomp_equal_p): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_complex.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/test/ruby/test_complex.rb b/test/ruby/test_complex.rb
index e5f2bfc..ca26f45 100644
--- a/test/ruby/test_complex.rb
+++ b/test/ruby/test_complex.rb
@@ -488,18 +488,6 @@ class Complex_Test < Test::Unit::TestCase
assert_raise(NoMethodError){Complex(1,1) <=> Complex(1,1)}
end
- def test_equal
- unless @unify
- assert_equal(true, Complex(1,0).equal?(Complex(1)))
- assert_equal(false, Complex(1,0).equal?(Complex(1.0)))
- if (0.0/0).nan?
- nan = 0.0/0
- assert_equal(true, Complex(nan).equal?(Complex(nan)))
- assert_equal(false, Complex(nan).equal?(nan))
- end
- end
- end
-
def test_eqeq
assert(Complex(1,0) == Complex(1))
assert(Complex(-1,0) == Complex(-1))