diff options
Diffstat (limited to 'test/ruby/test_complex.rb')
-rw-r--r-- | test/ruby/test_complex.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_complex.rb b/test/ruby/test_complex.rb index 48441d0db..b4912e623 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)) |