X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=testing%2Fprintf_testcases.incl;h=bcdb9f456a3243f1eb656e28bd8d01fd84bd5325;hp=c1c0a480647aa12fa65c6f88ed64be3683d88c54;hb=4ac9b504e2359481a08f0b343ac4b3ee728e77c8;hpb=e72505f84aa8d8730e46d955a2722af361112e4f 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;