git-svn-id: https://srv7.svn-repos.de/dev34/pdclib/trunk@463 546481bc-9713-0410-bf18...
[fw/pdclib] / testing / printf_testcases.incl
index c1c0a480647aa12fa65c6f88ed64be3683d88c54..bcdb9f456a3243f1eb656e28bd8d01fd84bd5325 100644 (file)
     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 );
     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;