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
4 years ago
by
taiyoslime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix improper test of Range#min
parent
9ea7b718
master
removing-y-tab-c
revert-5391-throw
stable
3.1.0-rc
3.0.0
3.0.0-rc
3.0.0-preview
No related merge requests found
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
...
...
This diff is collapsed.
Click to expand it.
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