summaryrefslogtreecommitdiff
path: root/test/bigdecimal/test_bigdecimal.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/bigdecimal/test_bigdecimal.rb')
-rw-r--r--test/bigdecimal/test_bigdecimal.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/bigdecimal/test_bigdecimal.rb b/test/bigdecimal/test_bigdecimal.rb
index b622358758..a699d0c488 100644
--- a/test/bigdecimal/test_bigdecimal.rb
+++ b/test/bigdecimal/test_bigdecimal.rb
@@ -709,4 +709,12 @@ class TestBigDecimal < Test::Unit::TestCase
ensure
GC.stress = stress
end
+
+ def test_INFINITY
+ assert(BigDecimal::INFINITY.infinite?, "BigDecimal::INFINITY is not a infinity")
+ end
+
+ def test_NAN
+ assert(BigDecimal::NAN.nan?, "BigDecimal::NAN is not NaN")
+ end
end