1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* complex.c (nucomp_equal_p): removed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tadf 2009-07-03 12:31:26 +00:00
parent bac1841a93
commit 0d2d098660
3 changed files with 7 additions and 43 deletions

View file

@ -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))