Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
c4f75c7d
Unverified
Commit
c4f75c7d
authored
Oct 08, 2020
by
taiyoslime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix improper test of Range#min
parent
9ea7b718
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mrbgems/mruby-range-ext/test/range.rb
mrbgems/mruby-range-ext/test/range.rb
+3
-3
No files found.
mrbgems/mruby-range-ext/test/range.rb
View file @
c4f75c7d
...
...
@@ -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
).
m
ax
assert_equal
nil
,
(
5
...
5
).
m
in
# returns the endpoint when the endpoint equals the start point and the range is inclusive
assert_equal
5
,
(
5
..
5
).
m
ax
assert_equal
5
,
(
5
..
5
).
m
in
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
).
m
ax
assert_equal
nil
,
(
3003.20
..
908.1111
).
m
in
end
assert
(
'Range#min given a block'
)
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment