summaryrefslogtreecommitdiff
path: root/test/-ext-/integer/test_integer.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-02 04:54:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-02 04:54:19 +0000
commit033c4a083d724f986bba85c769380ab0b579a484 (patch)
tree313127bfefacec92441050897238f7ae26bf75a0 /test/-ext-/integer/test_integer.rb
parent6e0967ec6de2be595bd8de8725bfbe334fd1ed82 (diff)
test: use RbConfig::Limits
* test/lib/envutil.rb: rbconfig/sizeof may not be available when cross-compiling. use RbConfig::Limits instead of calculating limits of Fixnum with hard-coded CHAR_BIT. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/-ext-/integer/test_integer.rb')
-rw-r--r--test/-ext-/integer/test_integer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/-ext-/integer/test_integer.rb b/test/-ext-/integer/test_integer.rb
index 000cb78..54f43f6 100644
--- a/test/-ext-/integer/test_integer.rb
+++ b/test/-ext-/integer/test_integer.rb
@@ -3,8 +3,8 @@ require 'test/unit'
require '-test-/integer'
class TestInteger < Test::Unit::TestCase
- FIXNUM_MIN = Integer::FIXNUM_MIN
- FIXNUM_MAX = Integer::FIXNUM_MAX
+ FIXNUM_MIN = RbConfig::Limits['FIXNUM_MIN']
+ FIXNUM_MAX = RbConfig::Limits['FIXNUM_MAX']
def test_fixnum_range
assert_bignum(FIXNUM_MIN-1)