]> pd.if.org Git - pdclib/blobdiff - testing/printf_testcases.incl
Formatting bug.
[pdclib] / testing / printf_testcases.incl
index 09eab2d3df746e7c7d1b1e9a3b65e03f3f9ce569..84c7968f40d48e76486cfaeedb7b752083f22ae8 100644 (file)
     /* FIXME: This test not yet 32/64 bit agnostic */
     TESTCASE( testprintf( buffer, 100, "%p", (void *)0xdeadbeef ) == 10 );
     TESTCASE_SPRINTF( strcmp( buffer, "0xdeadbeef" ) == 0 );
+    TESTCASE( testprintf( buffer, 100, "%#6x", 1 ) == 6 );
+    TESTCASE_SPRINTF( strcmp( buffer, "0x0001" ) == 0 );
 #ifndef TEST_CONVERSION_ONLY
     {
         int val1, val2;