summaryrefslogtreecommitdiff
path: root/test/-ext-
diff options
context:
space:
mode:
Diffstat (limited to 'test/-ext-')
-rw-r--r--test/-ext-/integer/test_integer.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/-ext-/integer/test_integer.rb b/test/-ext-/integer/test_integer.rb
new file mode 100644
index 00000000000..6ea42e31338
--- /dev/null
+++ b/test/-ext-/integer/test_integer.rb
@@ -0,0 +1,14 @@
+# frozen_string_literal: false
+require 'test/unit'
+
+class TestInteger < Test::Unit::TestCase
+ FIXNUM_MIN = Integer::FIXNUM_MIN
+ FIXNUM_MAX = Integer::FIXNUM_MAX
+
+ def test_fixnum_range
+ assert_bignum(FIXNUM_MIN-1)
+ assert_fixnum(FIXNUM_MIN)
+ assert_fixnum(FIXNUM_MAX)
+ assert_bignum(FIXNUM_MAX+1)
+ end
+end