Fix a test case to account for printf '-' flag overriding '0'.

This commit is contained in:
Stephen Heumann 2023-04-16 21:44:05 -05:00
parent 3a298ec341
commit 84401b4e97
1 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ int main (void)
if (i != 1)
goto Fail3;
string [41] = '\0';
if (strcmp (string, " +009. -0001.23456E-18 9876543210 G"))
if (strcmp (string, " +009. -1.23456E-18 9876543210 G"))
goto Fail;
rewind (stdout);
@ -62,10 +62,10 @@ int main (void)
if (i != 1)
goto Fail3;
string [41] = '\0';
if (strcmp (string, " +009. -0001.23456E-18 9876543210 G"))
if (strcmp (string, " +009. -1.23456E-18 9876543210 G"))
goto Fail;
if (strcmp (sstring, " +009. -0001.23456E-18 9876543210 G\n"))
if (strcmp (sstring, " +009. -1.23456E-18 9876543210 G\n"))
goto Fail;