X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=testing%2Fprintf_testcases.h;h=e0357fc72b30c7243063dc00bb0f84e59a93505f;hb=0fc3e46b7aa4342bbe254ba9d8129f21075db8be;hp=a36be11eff79e845a454b55be98c418a5ece360d;hpb=0711226145f12c37217681b57944860bdeb6ace0;p=pdclib diff --git a/testing/printf_testcases.h b/testing/printf_testcases.h index a36be11..e0357fc 100644 --- a/testing/printf_testcases.h +++ b/testing/printf_testcases.h @@ -94,7 +94,7 @@ PRINTF_TEST( (int)strlen( INT_HEXDIG ) + 3, "0xf" INT_hexdig, "%#3.6x", UINT_MAX ); PRINTF_TEST( INT_DIG + 1, "-" INT_MIN_DEZ_STR, "%.6d", INT_MIN ); PRINTF_TEST( INT_DIG + 1, "-" INT_MIN_DEZ_STR, "%6.3d", INT_MIN ); - PRINTF_TEST( INT_DIG + 1., "-" INT_MIN_DEZ_STR, "%3.6d", INT_MIN ); + PRINTF_TEST( INT_DIG + 1, "-" INT_MIN_DEZ_STR, "%3.6d", INT_MIN ); PRINTF_TEST( UINT_DIG, "0xf" INT_hexdig, "%#0.6x", UINT_MAX ); PRINTF_TEST( UINT_DIG, "0xf" INT_hexdig, "%#06.3x", UINT_MAX ); PRINTF_TEST( UINT_DIG, "0xf" INT_hexdig, "%#03.6x", UINT_MAX ); @@ -131,7 +131,6 @@ PRINTF_TEST( 1, "1", "%ju", (uintmax_t) 1); // uintmax_t PRINTF_TEST( 1, "1", "%zd", (size_t) 1); // signed size_t -#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. * @@ -168,8 +167,10 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ { +#ifndef TEST_CONVERSION_ONLY /* Ein String ohne alles */ PRINTF_TEST(12, "Hallo heimur", "Hallo heimur"); +#endif /* Einfache Konvertierungen */ PRINTF_TEST(12, "Hallo heimur", "%s", "Hallo heimur"); PRINTF_TEST(4, "1024", "%d", 1024); @@ -431,5 +432,3 @@ PRINTF_TEST(20, "00EDCB5433 ", "% -+0*.*X", 20, 10, -0x1234abcdu); } /******************************************************************************/ -#endif - \ No newline at end of file