summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-08-25 01:30:45 +0900
committerGitHub <[email protected]>2019-08-25 01:30:45 +0900
commite3f74291730e53d7a0c3a52874fa189326824643 (patch)
tree3f2e0341e91537530f70fe12587fd5ab7db57ad3
parentee0806ad4b9280d72323c0b91217acb54bc63b21 (diff)
parent13f58f9bc2bcff38cd88b7c59c366f8a97d60a08 (diff)
downloadmruby-e3f74291730e53d7a0c3a52874fa189326824643.tar.gz
mruby-e3f74291730e53d7a0c3a52874fa189326824643.zip
Merge pull request #4667 from shuujii/fix-Range-max-test-TypeError-is-raised-on-32-bit-mode
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