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
f4a3dc4f
Unverified
Commit
f4a3dc4f
authored
4 years ago
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for `Integer#quo` and `Float#quo`; #5268
parent
12ff8856
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
test/t/float.rb
test/t/float.rb
+5
-0
test/t/integer.rb
test/t/integer.rb
+6
-0
No files found.
test/t/float.rb
View file @
f4a3dc4f
...
...
@@ -41,6 +41,11 @@ assert('Float#/', '15.2.9.3.4') do
assert_float
(
1.0
,
a
)
assert_float
(
3.123456789
,
b
)
end
assert
(
'Float#quo'
)
do
a
=
3.123456789
.
quo
(
3.123456789
)
assert_float
(
1.0
,
a
)
end
assert
(
'Float#%'
,
'15.2.9.3.5'
)
do
a
=
3.125
%
3.125
...
...
This diff is collapsed.
Click to expand it.
test/t/integer.rb
View file @
f4a3dc4f
...
...
@@ -43,6 +43,12 @@ assert('Integer#/', '15.2.8.3.4') do
assert_equal
2.0
,
b
end
assert
(
'Integer#quo'
)
do
a
=
6
.
quo
(
5
)
assert_equal
1.2
,
a
end
assert
(
'Integer#%'
,
'15.2.8.3.5'
)
do
a
=
1
%
1
b
=
1
%
1.0
...
...
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