aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_rational.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_rational.rb')
-rw-r--r--test/ruby/test_rational.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_rational.rb b/test/ruby/test_rational.rb
index 186987aee2..82299c0c54 100644
--- a/test/ruby/test_rational.rb
+++ b/test/ruby/test_rational.rb
@@ -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