summaryrefslogtreecommitdiff
path: root/test/ruby/test_bignum.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_bignum.rb')
-rw-r--r--test/ruby/test_bignum.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ruby/test_bignum.rb b/test/ruby/test_bignum.rb
index 582a326eb63..15811d5d432 100644
--- a/test/ruby/test_bignum.rb
+++ b/test/ruby/test_bignum.rb
@@ -778,5 +778,15 @@ class TestBignum < Test::Unit::TestCase
assert_raise(TypeError) { T1024P.digits("10") }
assert_raise(TypeError) { T1024P.digits("a") }
end
+
+ def test_finite_p
+ assert_predicate(T1024P, :finite?)
+ assert_predicate(-T1024P, :finite?)
+ end
+
+ def test_infinite_p
+ assert_nil(T1024P.infinite?)
+ assert_nil((-T1024P).infinite?)
+ end
end
end