From e8b48e9939e8d602dda6a6c159082c36d62cd85c Mon Sep 17 00:00:00 2001 From: Kwarde Date: Mon, 21 Jul 2025 16:33:07 +0200 Subject: [PATCH] FIX unsigned test outputs: %d -> %u --- src/tests.asm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/tests.asm b/src/tests.asm index b883f01..5ab1e9c 100644 --- a/src/tests.asm +++ b/src/tests.asm @@ -108,12 +108,12 @@ section .rodata testMsg_assertILessE db "\t\tassert(output <= %d):\n\t\t\tExpected:\t%d\n\t\t\tGot:\t\t%d\n\t\t\t%s",NL,EOS testMsg_assertIMore db "\t\tassert(output > %d):\n\t\t\tExpected:\t%d\n\t\t\tGot:\t\t%d\n\t\t\t%s",NL,EOS testMsg_assertIMoreE db "\t\tassert(output >= %d):\n\t\t\tExpected:\t%d\n\t\t\tGot:\t\t%d\n\t\t\t%s",NL,EOS - testMsg_assertUEqual db "\t\tassert(output == %u):\n\t\t\tExpected:\t%d\n\t\t\tGot:\t\t%d\n\t\t\t%s",NL,EOS - testMsg_assertUNEqual db "\t\tassert(output != %u):\n\t\t\tExpected:\t%d\n\t\t\tGot:\t\t%d\n\t\t\t%s",NL,EOS - testMsg_assertULess db "\t\tassert(output < %u):\n\t\t\tExpected:\t%d\n\t\t\tGot:\t\t%d\n\t\t\t%s",NL,EOS - testMsg_assertULessE db "\t\tassert(output <= %u):\n\t\t\tExpected:\t%d\n\t\t\tGot:\t\t%d\n\t\t\t%s",NL,EOS - testMsg_assertUMore db "\t\tassert(output > %u):\n\t\t\tExpected:\t%d\n\t\t\tGot:\t\t%d\n\t\t\t%s",NL,EOS - testMsg_assertUMoreE db "\t\tassert(output >= %u):\n\t\t\tExpected:\t%d\n\t\t\tGot:\t\t%d\n\t\t\t%s",NL,EOS + testMsg_assertUEqual db "\t\tassert(output == %u):\n\t\t\tExpected:\t%u\n\t\t\tGot:\t\t%u\n\t\t\t%s",NL,EOS + testMsg_assertUNEqual db "\t\tassert(output != %u):\n\t\t\tExpected:\t%u\n\t\t\tGot:\t\t%u\n\t\t\t%s",NL,EOS + testMsg_assertULess db "\t\tassert(output < %u):\n\t\t\tExpected:\t%u\n\t\t\tGot:\t\t%u\n\t\t\t%s",NL,EOS + testMsg_assertULessE db "\t\tassert(output <= %u):\n\t\t\tExpected:\t%u\n\t\t\tGot:\t\t%u\n\t\t\t%s",NL,EOS + testMsg_assertUMore db "\t\tassert(output > %u):\n\t\t\tExpected:\t%u\n\t\t\tGot:\t\t%u\n\t\t\t%s",NL,EOS + testMsg_assertUMoreE db "\t\tassert(output >= %u):\n\t\t\tExpected:\t%u\n\t\t\tGot:\t\t%u\n\t\t\t%s",NL,EOS testMsg_False db " FAIL",EOS testMsg_True db "< > OK",EOS testMsg_Results db "\n*** Test Results ***\n* Total tests:\t\t%d\n* Succeeded tests:\t%d\n* Failed tests:\t\t%d\n",EOS