diff options
| author | taiyoslime <[email protected]> | 2020-10-08 18:39:13 +0900 |
|---|---|---|
| committer | taiyoslime <[email protected]> | 2020-10-12 13:42:27 +0900 |
| commit | c4f75c7de07b45ba0f2dd4e2c7a1305214f28fe6 (patch) | |
| tree | 5976a25a36d99ec2ce3119db9840f9ba3584540f | |
| parent | 9ea7b718683386d2dc0787e919fc3d413ab20e67 (diff) | |
| download | mruby-c4f75c7de07b45ba0f2dd4e2c7a1305214f28fe6.tar.gz mruby-c4f75c7de07b45ba0f2dd4e2c7a1305214f28fe6.zip | |
fix improper test of Range#min
| -rw-r--r-- | mrbgems/mruby-range-ext/test/range.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mrbgems/mruby-range-ext/test/range.rb b/mrbgems/mruby-range-ext/test/range.rb index 865e46d02..3e9b850b2 100644 --- a/mrbgems/mruby-range-ext/test/range.rb +++ b/mrbgems/mruby-range-ext/test/range.rb @@ -99,10 +99,10 @@ assert('Range#min') do assert_equal nil, (100..10).min # returns nil when the endpoint equals the start point and the range is exclusive - assert_equal nil, (5...5).max + assert_equal nil, (5...5).min # returns the endpoint when the endpoint equals the start point and the range is inclusive - assert_equal 5, (5..5).max + assert_equal 5, (5..5).min skip unless Object.const_defined?(:Float) @@ -110,7 +110,7 @@ assert('Range#min') do assert_equal 303.20, (303.20..908.1111).min # returns nil when the start point is greater than the endpoint in a Float range - assert_equal nil, (3003.20..908.1111).max + assert_equal nil, (3003.20..908.1111).min end assert('Range#min given a block') do |
