diff options
Diffstat (limited to 'test/-ext-')
-rw-r--r-- | test/-ext-/string/test_modify_expand.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/-ext-/string/test_modify_expand.rb b/test/-ext-/string/test_modify_expand.rb index b7f96426fc..9aa3b9a6ca 100644 --- a/test/-ext-/string/test_modify_expand.rb +++ b/test/-ext-/string/test_modify_expand.rb @@ -19,9 +19,8 @@ class Test_StringModifyExpand < Test::Unit::TestCase return if RbConfig::SIZEOF['size_t'] > RbConfig::SIZEOF['long'] bug12390 = '[ruby-core:75592] [Bug #12390]' s = Bug::String.new - long_max = (1 << (8 * RbConfig::SIZEOF['long'] - 1)) - 1 assert_raise(ArgumentError, bug12390) { - s.modify_expand!(long_max) + s.modify_expand!(RbConfig::LIMITS["LONG_MAX"]) } end end |