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
276b7702
Commit
276b7702
authored
Nov 21, 2012
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #564 from xxuejie/master
Use check_float to test equality of float values in Math#round test
parents
ae6a7e5a
a9c8ae49
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test/t/float.rb
test/t/float.rb
+1
-1
No files found.
test/t/float.rb
View file @
276b7702
...
...
@@ -105,7 +105,7 @@ assert('Float#round', '15.2.9.3.12') do
i
=
3.423456789
.
round
(
3
)
a
==
3
and
b
==
4
and
c
==
3
and
d
==
-
3
and
e
==
-
4
and
f
==
12350
and
g
==
3
and
h
==
3.4
and
i
==
3.423
f
==
12350
and
g
==
3
and
check_float
(
h
,
3.4
)
and
check_float
(
i
,
3.423
)
end
assert
(
'Float#to_f'
,
'15.2.9.3.13'
)
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