diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-08-25 01:30:45 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-08-25 01:30:45 +0900 |
| commit | e3f74291730e53d7a0c3a52874fa189326824643 (patch) | |
| tree | 3f2e0341e91537530f70fe12587fd5ab7db57ad3 | |
| parent | ee0806ad4b9280d72323c0b91217acb54bc63b21 (diff) | |
| parent | 13f58f9bc2bcff38cd88b7c59c366f8a97d60a08 (diff) | |
| download | mruby-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.rb | 2 |
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 |
