X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=testing%2Fprintf_testcases.incl;h=bcdb9f456a3243f1eb656e28bd8d01fd84bd5325;hb=35ae2c90b1e06be0b78a67a11c1f14c71f547a40;hp=c1c0a480647aa12fa65c6f88ed64be3683d88c54;hpb=d1d0e8dbd23a9691841c61c2d30d0ce7343f9adb;p=pdclib.old diff --git a/testing/printf_testcases.incl b/testing/printf_testcases.incl index c1c0a48..bcdb9f4 100644 --- a/testing/printf_testcases.incl +++ b/testing/printf_testcases.incl @@ -209,9 +209,11 @@ TESTCASE_SPRINTF( INT_OCTDIG ); TESTCASE( testprintf( target, "%#o", -1u ) == (int)strlen( INT_OCTDIG ) + 1 ); TESTCASE_SPRINTF( "0" INT_OCTDIG ); +#if 0 /* TODO: This test case is broken, doesn't test what it was intended to. */ TESTCASE( testprintf( target, "%.0#o", 0 ) == 5 ); TESTCASE_SPRINTF( "%.0#o" ); +#endif TESTCASE( testprintf( target, "%+d", INT_MIN ) == INT_DIG + 1 ); TESTCASE_SPRINTF( "-" INT_MIN_DEZ_STR ); TESTCASE( testprintf( target, "%+d", INT_MAX ) == INT_DIG + 1 ); @@ -349,7 +351,7 @@ TESTCASE( testprintf( target, "%p", (void *)0xdeadbeef ) == 10 ); TESTCASE_SPRINTF( "0xdeadbeef" ); TESTCASE( testprintf( target, "%#6x", 1 ) == 6 ); - TESTCASE_SPRINTF( "0x0001" ); + TESTCASE_SPRINTF( " 0x1" ); #ifndef TEST_CONVERSION_ONLY { int val1, val2;