]> Joshua Wise's Git repositories - firearm.git/commitdiff
tests/testbench: Update output formatting for testbench.
authorJoshua Wise <joshua@rebirth.joshuawise.com>
Sat, 17 Jan 2009 11:15:01 +0000 (06:15 -0500)
committerJoshua Wise <joshua@rebirth.joshuawise.com>
Sat, 17 Jan 2009 11:15:01 +0000 (06:15 -0500)
tests/ack.c
tests/j4cbo.c
tests/testbench.hex

index ab5701810e49ae7955bc22c1e5c45378c502db46..b72732c98acd2d1fc6d4cc40ee7dfee992b77587 100644 (file)
@@ -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");
 }
index 3a1382ed98b86627ece3c32190039e92be025c95..b7407d2f58fc01c4a83323f88cddbed89492ad66 100644 (file)
@@ -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");
 }
index ceab6f88c89620335204e864a8e0ae2b204dbd48..f3c75deb568ee11b726e540e5c6086cf31ce35dc 100644 (file)
Binary files a/tests/testbench.hex and b/tests/testbench.hex differ
This page took 0.023534 seconds and 4 git commands to generate.