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

Exclude json/add/complex.rb.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2012-03-12 00:32:16 +00:00
parent 48b5b163fc
commit 90b7ddb89f

View file

@ -1020,7 +1020,7 @@ class Complex_Test < Test::Unit::TestCase
end end
assert_equal(Complex(0.5,1.0), Complex(1,2).quo(2)) assert_equal(Complex(0.5,1.0), Complex(1,2).quo(2))
unless $".grep(/(\A|\/)complex/).empty? unless $".grep(/(?:\A|(?<!add)\/)complex/).empty?
assert_equal(Complex(0,2), Math.sqrt(-4.0)) assert_equal(Complex(0,2), Math.sqrt(-4.0))
# assert_equal(true, Math.sqrt(-4.0).inexact?) # assert_equal(true, Math.sqrt(-4.0).inexact?)
assert_equal(Complex(0,2), Math.sqrt(-4)) assert_equal(Complex(0,2), Math.sqrt(-4))