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
3252518a
Unverified
Commit
3252518a
authored
Feb 07, 2021
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests to work with `MRB_USE_FLOAT32`; fix #5329
parent
70b7ebd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
mrbgems/mruby-sprintf/test/sprintf.rb
mrbgems/mruby-sprintf/test/sprintf.rb
+5
-5
No files found.
mrbgems/mruby-sprintf/test/sprintf.rb
View file @
3252518a
...
...
@@ -10,11 +10,11 @@ assert('String#%') do
assert_equal
15
,
(
"%b"
%
(
1
<<
14
)).
size
skip
unless
Object
.
const_defined?
(
:Float
)
assert_equal
"1.0"
,
"%3.1f"
%
1.01
assert_equal
" 1234567
89.12"
,
"% 4.2f"
%
123456789
.123456789
assert_equal
"1234567
89.12"
,
"%-4.2f"
%
123456789
.123456789
assert_equal
"+1234567
89.12"
,
"%+4.2f"
%
123456789
.123456789
assert_equal
"1234567
89.12"
,
"%04.2f"
%
123456789
.123456789
assert_equal
"00000000
123456789.12"
,
"%020.2f"
%
123456789
.123456789
assert_equal
" 1234567
.12"
,
"% 4.2f"
%
1234567
.123456789
assert_equal
"1234567
.12"
,
"%-4.2f"
%
1234567
.123456789
assert_equal
"+1234567
.12"
,
"%+4.2f"
%
1234567
.123456789
assert_equal
"1234567
.12"
,
"%04.2f"
%
1234567
.123456789
assert_equal
"00000000
001234567.12"
,
"%020.2f"
%
1234567
.123456789
end
assert
(
'String#% with inf'
)
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