From 88d7a366e7e12b52d91b1280ff57239ead3bc767 Mon Sep 17 00:00:00 2001 From: Joshua Wise Date: Sat, 17 Jan 2009 06:15:01 -0500 Subject: [PATCH] tests/testbench: Update output formatting for testbench. --- tests/ack.c | 5 +++-- tests/j4cbo.c | 10 ++++++---- tests/testbench.hex | Bin 9351 -> 9216 bytes 3 files changed, 9 insertions(+), 6 deletions(-) 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 ceab6f88c89620335204e864a8e0ae2b204dbd48..f3c75deb568ee11b726e540e5c6086cf31ce35dc 100644 GIT binary patch delta 705 zcmaKqK}y3w6oyG!)CPqH3)-5tX@i2`;!P&g%Oyei0g{j8ApolB8-0PzTt zl`h1+HxLA`(2WZbaoT1I1?#M4nE!q6fB($&$#~>uOymkcI#~(;RIms4&8p-eancM5 z*M77-;be@Y6bLvONwf;6R_A&p0$(dFPajtaC|cFP({wIW!ht)}a>zq48(9pi+f|RP zM1%}4HkcLRuzG~;)@Jd(aZ^X=*6MWTMVp#>$!LOZZ3ln+wROrUfQa$MZPb?xD;nc> zd$*!OqJ8x`im3mbO`7+%E%TXF%CwY{#SpR_f^lu`6#e$6wyC*onP^w@iOryFQB|CG zh{a=#`#Utrr&l7^f$Q9s{L7f(b2r#0hHjt((3$0$&sd9e;(5koL|TVt!)4R delta 824 zcmZuvy^ho{5SFtmv>4FsQQhrwQL-zjC>;N%r+^loAhF}}BnldYbaV)$6P!l6f{KbB z0~V{si_vS;!HGDDhR2Q$SQtcUMMWhv z9(JP*V+~b8p^{?%5gh3#IMew$3agRdL@|)Nr)MZGv{IZJGZ?xd0`@92oFcG>c_gUh z%;