aboutsummaryrefslogtreecommitdiffstats
path: root/test/-ext-
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-22 02:28:03 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-22 02:28:03 +0000
commitfbdd3c97ddc4c125dbebfc412b2f41a4745c45bb (patch)
treed04723411e2304c997f76c7943110df233fc9c4f /test/-ext-
parent333045c934b3815642c77855fc12915dca8ae1a1 (diff)
downloadruby-fbdd3c97ddc4c125dbebfc412b2f41a4745c45bb.tar.gz
move duplicate assertions
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 0000000000..6ea42e3133
--- /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