X-Git-Url: https://jxself.org/git/?p=mes.git;a=blobdiff_plain;f=scaffold%2Ftests%2F52-itoa.c;h=ecf162fcd8a364de5b39c856b819616aed4de337;hp=80b51205f348cce43e22c7d92eae60069fc7e3fa;hb=2cda87257ac3b6448dbc2da43180e92287193db9;hpb=64db2eaf7d6e2589c852ad1a4396748427228df4 diff --git a/scaffold/tests/52-itoa.c b/scaffold/tests/52-itoa.c index 80b51205..ecf162fc 100644 --- a/scaffold/tests/52-itoa.c +++ b/scaffold/tests/52-itoa.c @@ -1,6 +1,6 @@ /* -*-comment-start: "//";comment-end:""-*- * Mes --- Maxwell Equations of Software - * Copyright © 2017 Jan Nieuwenhuizen + * Copyright © 2017 Jan (janneke) Nieuwenhuizen * * This file is part of Mes. * @@ -19,7 +19,7 @@ */ #include "30-test.i" -#include +#include #include #include @@ -30,16 +30,21 @@ test () puts ("\n"); puts ("t: itoa (33) == \"33\"\n"); - if (strcmp (itoa (33), "33")) return 1; + if (strcmp (itoa (33), "33")) + return 1; puts ("strcmp (itoa (-1), \"-1\")\n"); - if (strcmp (itoa (-1), "-1")) return 1; + puts (itoa (-1)); + if (strcmp (itoa (-1), "-1")) + return 2; puts ("strcmp (itoa (0), \"0\")\n"); - if (strcmp (itoa (0), "0")) return 1; + if (strcmp (itoa (0), "0")) + return 3; puts ("strcmp (itoa (1), \"1\")\n"); - if (strcmp (itoa (1), "1")) return 1; + if (strcmp (itoa (1), "1")) + return 4; return 0; }