mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fixed. [ruby-dev:34109]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fa09f2ff02
commit
6e383d9fa2
5 changed files with 43 additions and 38 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue