summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-08-24 14:22:10 +0900
committerKOBAYASHI Shuji <[email protected]>2019-08-24 14:22:10 +0900
commit13f58f9bc2bcff38cd88b7c59c366f8a97d60a08 (patch)
treee6150a1647d153fa83484174d5a1c7a45f078250
parent71242c0f2e1c07b693baf12ead8384dbfd120cb5 (diff)
downloadmruby-13f58f9bc2bcff38cd88b7c59c366f8a97d60a08.tar.gz
mruby-13f58f9bc2bcff38cd88b7c59c366f8a97d60a08.zip
Fix `Range#max` test (`TypeError` is raised) on 32-bit mode
-rw-r--r--mrbgems/mruby-range-ext/test/range.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-range-ext/test/range.rb b/mrbgems/mruby-range-ext/test/range.rb
index e2c549d04..8179cef53 100644
--- a/mrbgems/mruby-range-ext/test/range.rb
+++ b/mrbgems/mruby-range-ext/test/range.rb
@@ -39,7 +39,7 @@ assert('Range#max') do
# returns the maximum value in the range when called with no arguments
assert_equal 10, (1..10).max
assert_equal 9, (1...10).max
- assert_equal 4294967295, (0...2**32).max
+ assert_equal 1073741823, (0...2**30).max
# returns nil when the endpoint is less than the start point
assert_equal nil, (100..10).max