minimalist hardware testing support

Dependents:   MAX5715BOB_Tester MAX11131BOB_Tester MAX5171BOB_Tester MAX11410BOB_Tester ... more

Revision:
6:3d50dda3d0eb
Parent:
5:67a1cd5a67cc
Child:
7:5b40b6370f8a
--- a/MaximTinyTester.cpp	Thu Jan 30 23:56:17 2020 +0000
+++ b/MaximTinyTester.cpp	Mon Mar 09 15:30:46 2020 -0700
@@ -304,14 +304,14 @@
     if (( -err_threshold < err_result) && ( err_result < err_threshold))
     {
         PASS();
-        associatedCmdLine.serial().printf("%s(%d)", nameOfFunctionUnderTest, value_u32);
+        associatedCmdLine.serial().printf("%s(0x%lx)", nameOfFunctionUnderTest, value_u32);
         associatedCmdLine.serial().printf(" expect %6.6f", expect_result);
         return true;
     }
     else
     {
         FAIL();
-        associatedCmdLine.serial().printf("%s(%d)", nameOfFunctionUnderTest, value_u32);
+        associatedCmdLine.serial().printf("%s(0x%lx)", nameOfFunctionUnderTest, value_u32);
         associatedCmdLine.serial().printf(" expect %6.6f", expect_result);
         associatedCmdLine.serial().printf(" but got %6.6f", actual_result);
         associatedCmdLine.serial().printf(" err=%6.6f", err_result);
@@ -346,14 +346,14 @@
     if (( -err_threshold < err_result) && ( err_result < err_threshold))
     {
         PASS();
-        associatedCmdLine.serial().printf("%s(%d)", nameOfFunctionUnderTest, value_d);
+        associatedCmdLine.serial().printf("%s(%6.6f)", nameOfFunctionUnderTest, value_d);
         associatedCmdLine.serial().printf(" expect %6.6f", expect_result);
         return true;
     }
     else
     {
         FAIL();
-        associatedCmdLine.serial().printf("%s(%d)", nameOfFunctionUnderTest, value_d);
+        associatedCmdLine.serial().printf("%s(%6.6f)", nameOfFunctionUnderTest, value_d);
         associatedCmdLine.serial().printf(" expect %6.6f", expect_result);
         associatedCmdLine.serial().printf(" but got %6.6f", actual_result);
         associatedCmdLine.serial().printf(" err=%6.6f", err_result);