mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-06-02 00:41:32 +00:00
Fix a test case to account for printf '-' flag overriding '0'.
This commit is contained in:
parent
3a298ec341
commit
84401b4e97
|
@ -54,7 +54,7 @@ int main (void)
|
||||||
if (i != 1)
|
if (i != 1)
|
||||||
goto Fail3;
|
goto Fail3;
|
||||||
string [41] = '\0';
|
string [41] = '\0';
|
||||||
if (strcmp (string, " +009. -0001.23456E-18 9876543210 G"))
|
if (strcmp (string, " +009. -1.23456E-18 9876543210 G"))
|
||||||
goto Fail;
|
goto Fail;
|
||||||
|
|
||||||
rewind (stdout);
|
rewind (stdout);
|
||||||
|
@ -62,10 +62,10 @@ int main (void)
|
||||||
if (i != 1)
|
if (i != 1)
|
||||||
goto Fail3;
|
goto Fail3;
|
||||||
string [41] = '\0';
|
string [41] = '\0';
|
||||||
if (strcmp (string, " +009. -0001.23456E-18 9876543210 G"))
|
if (strcmp (string, " +009. -1.23456E-18 9876543210 G"))
|
||||||
goto Fail;
|
goto Fail;
|
||||||
|
|
||||||
if (strcmp (sstring, " +009. -0001.23456E-18 9876543210 G\n"))
|
if (strcmp (sstring, " +009. -1.23456E-18 9876543210 G\n"))
|
||||||
goto Fail;
|
goto Fail;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user