aboutsummaryrefslogtreecommitdiffstats
path: root/test/-ext-
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-06 02:10:40 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-06 02:10:40 +0000
commit10a9f14d00add45b3f7b3b17f21ba87b6f187f6d (patch)
treefea6af122d375b094c3aff58a38f3f3418590afa /test/-ext-
parent1c65eb6d502ee79176fb821b2abe644ecf81a300 (diff)
downloadruby-10a9f14d00add45b3f7b3b17f21ba87b6f187f6d.tar.gz
Rename RbConfig::Limits as RbConfig::LIMITS
* template/limits.c.tmpl (Init_limits): rename RbConfig::Limits as RbConfig::LIMITS, constants other than class or module are all uppercase with underscores by convention. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/-ext-')
-rw-r--r--test/-ext-/integer/test_integer.rb4
-rw-r--r--test/-ext-/num2int/test_num2int.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/test/-ext-/integer/test_integer.rb b/test/-ext-/integer/test_integer.rb
index 54f43f681e..320237791a 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 = RbConfig::Limits['FIXNUM_MIN']
- FIXNUM_MAX = RbConfig::Limits['FIXNUM_MAX']
+ FIXNUM_MIN = RbConfig::LIMITS['FIXNUM_MIN']
+ FIXNUM_MAX = RbConfig::LIMITS['FIXNUM_MAX']
def test_fixnum_range
assert_bignum(FIXNUM_MIN-1)
diff --git a/test/-ext-/num2int/test_num2int.rb b/test/-ext-/num2int/test_num2int.rb
index 0b12209134..5d310af40d 100644
--- a/test/-ext-/num2int/test_num2int.rb
+++ b/test/-ext-/num2int/test_num2int.rb
@@ -5,7 +5,7 @@ require '-test-/integer'
require 'rbconfig/sizeof'
class TestNum2int < Test::Unit::TestCase
- l = RbConfig::Limits
+ l = RbConfig::LIMITS
SHRT_MIN = l["SHRT_MIN"]
SHRT_MAX = l["SHRT_MAX"]