summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_array.rb4
-rw-r--r--test/ruby/test_bignum.rb4
-rw-r--r--test/ruby/test_enum.rb4
-rw-r--r--test/ruby/test_marshal.rb2
-rw-r--r--test/ruby/test_numeric.rb2
-rw-r--r--test/ruby/test_string.rb2
6 files changed, 9 insertions, 9 deletions
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb
index 3cfd3d764df..fbc0790f0f3 100644
--- a/test/ruby/test_array.rb
+++ b/test/ruby/test_array.rb
@@ -2778,8 +2778,8 @@ class TestArray < Test::Unit::TestCase
assert_raise(TypeError) {h.dig(1, 0)}
end
- 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 assert_typed_equal(e, v, cls, msg=nil)
assert_kind_of(cls, v, msg)
diff --git a/test/ruby/test_bignum.rb b/test/ruby/test_bignum.rb
index 4cdf86d6d42..e680d28735e 100644
--- a/test/ruby/test_bignum.rb
+++ b/test/ruby/test_bignum.rb
@@ -6,8 +6,8 @@ rescue LoadError
else
class TestBignum < 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']
BIGNUM_MIN = FIXNUM_MAX + 1
b = BIGNUM_MIN
diff --git a/test/ruby/test_enum.rb b/test/ruby/test_enum.rb
index 6c17c9e20a0..27d406680a1 100644
--- a/test/ruby/test_enum.rb
+++ b/test/ruby/test_enum.rb
@@ -184,8 +184,8 @@ class TestEnumerable < Test::Unit::TestCase
assert_equal(nil, @empty.inject() {9})
end
- 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_inject_array_mul
assert_equal(nil, [].inject(:*))
diff --git a/test/ruby/test_marshal.rb b/test/ruby/test_marshal.rb
index 8a0b117cf6d..48a7d03428e 100644
--- a/test/ruby/test_marshal.rb
+++ b/test/ruby/test_marshal.rb
@@ -622,7 +622,7 @@ class TestMarshal < Test::Unit::TestCase
def test_untainted_numeric
bug8945 = '[ruby-core:57346] [Bug #8945] Numerics never be tainted'
- b = RbConfig::Limits['FIXNUM_MAX'] + 1
+ b = RbConfig::LIMITS['FIXNUM_MAX'] + 1
tainted = [0, 1.0, 1.72723e-77, b].select do |x|
Marshal.load(Marshal.dump(x).taint).tainted?
end
diff --git a/test/ruby/test_numeric.rb b/test/ruby/test_numeric.rb
index 529ba70362a..92717e9f3b1 100644
--- a/test/ruby/test_numeric.rb
+++ b/test/ruby/test_numeric.rb
@@ -258,7 +258,7 @@ class TestNumeric < Test::Unit::TestCase
end
def test_step
- bignum = RbConfig::Limits['FIXNUM_MAX'] + 1
+ bignum = RbConfig::LIMITS['FIXNUM_MAX'] + 1
assert_raise(ArgumentError) { 1.step(10, 1, 0) { } }
assert_raise(ArgumentError) { 1.step(10, 1, 0).size }
assert_raise(ArgumentError) { 1.step(10, 0) { } }
diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb
index 7dbf27e552c..0bfca5ad052 100644
--- a/test/ruby/test_string.rb
+++ b/test/ruby/test_string.rb
@@ -203,7 +203,7 @@ CODE
assert_raise(ArgumentError) { "foo"[1, 2, 3] = "" }
- assert_raise(IndexError) {"foo"[RbConfig::Limits["LONG_MIN"]] = "l"}
+ assert_raise(IndexError) {"foo"[RbConfig::LIMITS["LONG_MIN"]] = "l"}
end
def test_CMP # '<=>'