X-Git-Url: https://git.gag.com/?p=fw%2Fpdclib;a=blobdiff_plain;f=testing%2Fprintf_testcases.incl;h=bcdb9f456a3243f1eb656e28bd8d01fd84bd5325;hp=c1c0a480647aa12fa65c6f88ed64be3683d88c54;hb=8f9ec95011e88dc1151533c3a5bdf86c3e7eac21;hpb=8783b55f5e11c925ed435fac3985f064a4184e9a 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;