aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_enum.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-01 15:16:17 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-01 15:16:17 +0000
commit157f5b50f3cd3db01e3f4ea86679c37cbb02e932 (patch)
tree2481ed6dd9955cdeae6ac3dd5220ba4c9261aaec /test/ruby/test_enum.rb
parentbded512fb094f52bec6f29872800724046db1bee (diff)
downloadruby-157f5b50f3cd3db01e3f4ea86679c37cbb02e932.tar.gz
envutil.rb defines Integer::{FIXNUM_MIN,FIXNUM_MAX}.
* test/lib/envutil.rb: Define Integer::{FIXNUM_MIN,FIXNUM_MAX}. * test/ruby/test_bignum.rb: Use Integer::{FIXNUM_MIN,FIXNUM_MAX}. * test/ruby/test_bignum.rb: Ditto. * test/ruby/test_integer_comb.rb: Ditto. * test/ruby/test_marshal.rb: Ditto. * test/ruby/test_optimization.rb: Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_enum.rb')
-rw-r--r--test/ruby/test_enum.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/ruby/test_enum.rb b/test/ruby/test_enum.rb
index 97730f919f..4d4363cf0e 100644
--- a/test/ruby/test_enum.rb
+++ b/test/ruby/test_enum.rb
@@ -2,7 +2,6 @@
require 'test/unit'
EnvUtil.suppress_warning {require 'continuation'}
require 'stringio'
-require "rbconfig/sizeof"
class TestEnumerable < Test::Unit::TestCase
def setup
@@ -185,8 +184,8 @@ class TestEnumerable < Test::Unit::TestCase
assert_equal(nil, @empty.inject() {9})
end
- FIXNUM_MIN = -(1 << (8 * RbConfig::SIZEOF['long'] - 2))
- FIXNUM_MAX = (1 << (8 * RbConfig::SIZEOF['long'] - 2)) - 1
+ FIXNUM_MIN = Integer::FIXNUM_MIN
+ FIXNUM_MAX = Integer::FIXNUM_MAX
def test_inject_array_mul
assert_equal(nil, [].inject(:*))