X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=testing%2Fprintf_testcases.h;h=f7f1413dfcde7d9aa710b581847d14d04e4611a4;hb=ab37f3993ef0dbbfa85c4775bdacc398a294a75d;hp=db418467b4f0cb091088fe484987ce0d583ae7c5;hpb=677fdda181df4279bd167e8aceb6952be4944e79;p=pdclib.old diff --git a/testing/printf_testcases.h b/testing/printf_testcases.h index db41846..f7f1413 100644 --- a/testing/printf_testcases.h +++ b/testing/printf_testcases.h @@ -1,5 +1,5 @@ { -#if defined(_PDCLIB_CHAR_SIGNED) +#if CHAR_MIN == -128 assert(CHAR_MIN == -128); PRINTF_TEST( 4, "-128", "%hhd", CHAR_MIN ); assert(CHAR_MAX == 127); @@ -126,6 +126,7 @@ #endif } +#ifndef TEST_CONVERSION_ONLY /****************************************************************************** * NOTE: The following test cases are imported from the Tyndur project. They * * are therefore under the license of said project, not CC0. * @@ -424,4 +425,6 @@ PRINTF_TEST(20, "1234ABCD ", "% -+0*.*X", 20, 5, 0x1234abcdu); PRINTF_TEST(20, "00EDCB5433 ", "% -+0*.*X", 20, 10, -0x1234abcdu); } -/******************************************************************************/ \ No newline at end of file +/******************************************************************************/ +#endif + \ No newline at end of file