From 6e383d9fa285df5c787fe85ba691bd5ae003bdca Mon Sep 17 00:00:00 2001 From: tadf Date: Sat, 22 Mar 2008 17:31:08 +0000 Subject: fixed. [ruby-dev:34109] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_complex.rb | 2 +- test/ruby/test_rational.rb | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'test') diff --git a/test/ruby/test_complex.rb b/test/ruby/test_complex.rb index 48441d0dbd..b4912e6231 100644 --- a/test/ruby/test_complex.rb +++ b/test/ruby/test_complex.rb @@ -894,7 +894,7 @@ class Complex_Test < Test::Unit::TestCase end assert_equal(Complex(0.5,1.0), Complex(1,2).quo(2)) - unless $".grep(/complex/).empty? + unless $".grep(/(\A|\/)complex/).empty? assert_equal(Complex(0,2), Math.sqrt(-4.0)) # assert_equal(true, Math.sqrt(-4.0).inexact?) assert_equal(Complex(0,2), Math.sqrt(-4)) diff --git a/test/ruby/test_rational.rb b/test/ruby/test_rational.rb index bafe995a26..f039a3c36e 100644 --- a/test/ruby/test_rational.rb +++ b/test/ruby/test_rational.rb @@ -959,13 +959,12 @@ class Rational_Test < Test::Unit::TestCase if defined?(Rational::Unify) assert_instance_of(Fixnum, Rational(1,2) ** 0) # mathn's bug end - end -=begin - def test_known_bug n = Float::MAX.to_i * 2 assert_equal(1.0, Rational(n + 2, n + 1).to_f, '[ruby-dev:33852]') end -=end + + def test_known_bug + end end -- cgit v1.2.3