mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-16 18:25:57 +00:00
ICU-3499 Add some tests.
X-SVN-Rev: 14887
This commit is contained in:
parent
eda343b40a
commit
d042b45786
2 changed files with 2 additions and 0 deletions
|
@ -886,6 +886,7 @@ static void TestFprintfFormat(void) {
|
|||
TestFPrintFormat("%8C", (UChar)0x65, "%8c", (char)0x65);
|
||||
TestFPrintFormat("%-8C", (UChar)0x65, "%-8c", (char)0x65);
|
||||
|
||||
TestFPrintFormat("%f", 1.23456789, "%f", 1.23456789);
|
||||
TestFPrintFormat("%10f", 1.23456789, "%10f", 1.23456789);
|
||||
TestFPrintFormat("%-10f", 1.23456789, "%-10f", 1.23456789);
|
||||
TestFPrintFormat("%10f", 123.456789, "%10f", 123.456789);
|
||||
|
|
|
@ -344,6 +344,7 @@ static void TestSprintfFormat(void) {
|
|||
TestSPrintFormat("%8C", (UChar)0x65, "%8c", (char)0x65);
|
||||
TestSPrintFormat("%-8C", (UChar)0x65, "%-8c", (char)0x65);
|
||||
|
||||
TestSPrintFormat("%f", 1.23456789, "%f", 1.23456789);
|
||||
TestSPrintFormat("%10f", 1.23456789, "%10f", 1.23456789);
|
||||
TestSPrintFormat("%-10f", 1.23456789, "%-10f", 1.23456789);
|
||||
TestSPrintFormat("%10f", 123.456789, "%10f", 123.456789);
|
||||
|
|
Loading…
Add table
Reference in a new issue