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
9c136a47
Commit
9c136a47
authored
Jan 30, 2024
by
Daniel Lehman
Committed by
Alexandre Julliard
Feb 01, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ucrtbase/tests: Add sprintf tests.
parent
53faf7bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
printf.c
dlls/ucrtbase/tests/printf.c
+19
-0
No files found.
dlls/ucrtbase/tests/printf.c
View file @
9c136a47
...
@@ -815,11 +815,30 @@ static void test_printf_fp(void)
...
@@ -815,11 +815,30 @@ static void test_printf_fp(void)
{
"%#.20g"
,
-
765
,
{
"-765.00000000000000000"
}},
{
"%#.20g"
,
-
765
,
{
"-765.00000000000000000"
}},
{
"%.30f"
,
1
.
0
/
3
.
0
,
{
"0.333333333333333314829616256247"
}},
{
"%.30f"
,
1
.
0
/
3
.
0
,
{
"0.333333333333333314829616256247"
}},
{
"%.30lf"
,
sqrt
(
2
),
{
"1.414213562373095145474621858739"
}},
{
"%.30lf"
,
sqrt
(
2
),
{
"1.414213562373095145474621858739"
}},
{
"%f"
,
3
.
141592653590000
,
{
"3.141593"
}},
{
"%.10f"
,
3
.
141592653590000
,
{
"3.1415926536"
}},
{
"%.11f"
,
3
.
141592653590000
,
{
"3.14159265359"
}},
{
"%.15f"
,
3
.
141592653590000
,
{
"3.141592653590000"
}},
{
"%.15f"
,
M_PI
,
{
"3.141592653589793"
}},
{
"%.13f"
,
37
.
866261574537077
,
{
"37.8662615745371"
}},
{
"%.14f"
,
37
.
866261574537077
,
{
"37.86626157453708"
}},
{
"%.15f"
,
37
.
866261574537077
,
{
"37.866261574537077"
}},
{
"%.0g"
,
9.8949714229143402e-05
,
{
"0.0001"
}},
{
"%.0g"
,
9.8949714229143402e-05
,
{
"0.0001"
}},
{
"%.0f"
,
0
.
5
,
{
"1"
,
NULL
,
NULL
,
NULL
,
"0"
},
{
NULL
,
NULL
,
NULL
,
NULL
,
"1"
}},
{
"%.0f"
,
0
.
5
,
{
"1"
,
NULL
,
NULL
,
NULL
,
"0"
},
{
NULL
,
NULL
,
NULL
,
NULL
,
"1"
}},
{
"%.0f"
,
1
.
5
,
{
"2"
}},
{
"%.0f"
,
1
.
5
,
{
"2"
}},
{
"%.0f"
,
2
.
5
,
{
"3"
,
NULL
,
NULL
,
NULL
,
"2"
},
{
NULL
,
NULL
,
NULL
,
NULL
,
"3"
}},
{
"%.0f"
,
2
.
5
,
{
"3"
,
NULL
,
NULL
,
NULL
,
"2"
},
{
NULL
,
NULL
,
NULL
,
NULL
,
"3"
}},
{
"%g"
,
9.999999999999999e-5
,
{
"0.0001"
}},
{
"%g"
,
9.999999999999999e-5
,
{
"0.0001"
}},
{
"%g"
,
0
.
0005
,
{
"0.0005"
}},
{
"%g"
,
0
.
00005
,
{
"5e-05"
,
NULL
,
"5e-005"
}},
{
"%g"
,
0
.
000005
,
{
"5e-06"
,
NULL
,
"5e-006"
}},
{
"%g"
,
999999999999999
.
0
,
{
"1e+15"
,
NULL
,
"1e+015"
}},
{
"%g"
,
1000000000000000
.
0
,
{
"1e+15"
,
NULL
,
"1e+015"
}},
{
"%.15g"
,
0
.
0005
,
{
"0.0005"
}},
{
"%.15g"
,
0
.
00005
,
{
"5e-05"
,
NULL
,
"5e-005"
}},
{
"%.15g"
,
0
.
000005
,
{
"5e-06"
,
NULL
,
"5e-006"
}},
{
"%.15g"
,
999999999999999
.
0
,
{
"999999999999999"
}},
{
"%.15g"
,
1000000000000000
.
0
,
{
"1e+15"
,
NULL
,
"1e+015"
}},
};
};
const
char
*
res
=
NULL
;
const
char
*
res
=
NULL
;
...
...
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