* test/ruby/test_complex.rb: cherry-picked working assertions from r47251.

* test/ruby/test_rational.rb: cherry-picked working assertions from r47263.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
hsbt 2014-08-26 13:30:35 +00:00
parent 63683cb46d
commit 618dadaaaa
3 changed files with 13 additions and 0 deletions

View file

@ -173,8 +173,10 @@ class Rational_Test < Test::Unit::TestCase
c = Rational(1)
if @unify
assert_equal(true, c.integer?)
assert_equal(true, c.real?)
else
assert_equal(false, c.integer?)
assert_equal(true, c.real?)
end