Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
50bfe009
Commit
50bfe009
authored
Jan 30, 2024
by
Daniel Lehman
Committed by
Alexandre Julliard
Feb 01, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt/tests: Add sprintf tests.
parent
9c136a47
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
printf.c
dlls/msvcrt/tests/printf.c
+18
-0
No files found.
dlls/msvcrt/tests/printf.c
View file @
50bfe009
...
...
@@ -253,6 +253,24 @@ static void test_sprintf( void )
{
"%.0f"
,
"2"
,
0
,
DOUBLE_ARG
,
0
,
0
,
1
.
5
},
{
"%.30f"
,
"0.333333333333333310000000000000"
,
0
,
TODO_FLAG
|
DOUBLE_ARG
,
0
,
0
,
1
.
0
/
3
.
0
},
{
"%.30lf"
,
"1.414213562373095100000000000000"
,
0
,
TODO_FLAG
|
DOUBLE_ARG
,
0
,
0
,
sqrt
(
2
)
},
{
"%f"
,
"3.141593"
,
0
,
DOUBLE_ARG
,
0
,
0
,
3
.
141592653590000
},
{
"%.10f"
,
"3.1415926536"
,
0
,
DOUBLE_ARG
,
0
,
0
,
3
.
141592653590000
},
{
"%.11f"
,
"3.14159265359"
,
0
,
DOUBLE_ARG
,
0
,
0
,
3
.
141592653590000
},
{
"%.15f"
,
"3.141592653590000"
,
0
,
DOUBLE_ARG
,
0
,
0
,
3
.
141592653590000
},
{
"%.15f"
,
"3.141592653589793"
,
0
,
DOUBLE_ARG
,
0
,
0
,
M_PI
},
{
"%.13f"
,
"37.8662615745371"
,
0
,
DOUBLE_ARG
,
0
,
0
,
37
.
866261574537077
},
{
"%.14f"
,
"37.86626157453708"
,
0
,
DOUBLE_ARG
,
0
,
0
,
37
.
866261574537077
},
{
"%.15f"
,
"37.866261574537077"
,
0
,
DOUBLE_ARG
,
0
,
0
,
37
.
866261574537077
},
{
"%g"
,
"0.0005"
,
0
,
DOUBLE_ARG
,
0
,
0
,
0
.
0005
},
{
"%g"
,
"5e-005"
,
0
,
DOUBLE_ARG
,
0
,
0
,
0
.
00005
},
{
"%g"
,
"5e-006"
,
0
,
DOUBLE_ARG
,
0
,
0
,
0
.
000005
},
{
"%g"
,
"1e+015"
,
0
,
DOUBLE_ARG
,
0
,
0
,
999999999999999
.
0
},
{
"%g"
,
"1e+015"
,
0
,
DOUBLE_ARG
,
0
,
0
,
1000000000000000
.
0
},
{
"%.15g"
,
"0.0005"
,
0
,
DOUBLE_ARG
,
0
,
0
,
0
.
0005
},
{
"%.15g"
,
"5e-005"
,
0
,
DOUBLE_ARG
,
0
,
0
,
0
.
00005
},
{
"%.15g"
,
"5e-006"
,
0
,
DOUBLE_ARG
,
0
,
0
,
0
.
000005
},
{
"%.15g"
,
"999999999999999"
,
0
,
DOUBLE_ARG
,
0
,
0
,
999999999999999
.
0
},
{
"%.15g"
,
"1e+015"
,
0
,
DOUBLE_ARG
,
0
,
0
,
1000000000000000
.
0
},
};
char
buffer
[
100
];
...
...
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