From: Joshua Wise Date: Sat, 17 Jan 2009 11:15:01 +0000 (-0500) Subject: tests/testbench: Update output formatting for testbench. X-Git-Url: http://git.joshuawise.com/firearm.git/commitdiff_plain/88d7a366e7e12b52d91b1280ff57239ead3bc767?ds=sidebyside tests/testbench: Update output formatting for testbench. --- diff --git a/tests/ack.c b/tests/ack.c index ab57018..b72732c 100644 --- a/tests/ack.c +++ b/tests/ack.c @@ -17,9 +17,10 @@ void acktest() { int x; if ((x = ack(3, 3)) != 61) { - puts("FAIL: Ack test did not return 61\n"); + puthex(x); + puts(" -> FAIL\n"); puthex(x); } else - puts("PASS: Ack test returned 61\n"); + puts("PASS\n"); } diff --git a/tests/j4cbo.c b/tests/j4cbo.c index 3a1382e..b7407d2 100644 --- a/tests/j4cbo.c +++ b/tests/j4cbo.c @@ -165,8 +165,10 @@ int h1100(bitpos) void j4cbo() { - if (h(0) != 151) - puts("Result was not 151\r\n"); - else - puts("Result was 151\r\n"); + int x; + if ((x = h(0)) != 151) { + puthex(x); + puts(" -> FAIL\n"); + } else + puts("PASS\n"); } diff --git a/tests/testbench.hex b/tests/testbench.hex index ceab6f8..f3c75de 100644 Binary files a/tests/testbench.hex and b/tests/testbench.hex differ