this is a class for unit testing

Dependents:   OS

This is an UnitTest library. You can use for POST.

Revision:
4:13e7349640c0
Parent:
3:658ba851ab74
--- a/UnitTest.cpp	Wed Sep 11 10:36:53 2019 +0000
+++ b/UnitTest.cpp	Wed Nov 20 13:27:27 2019 +0000
@@ -2,21 +2,21 @@
 
 void UnitTest::start(){
     testCount = 1;
-    printf("UnitTest:\n\n");
+    printf("UnitTest:\n\r");
     unitTest.start();
 }
 
 void UnitTest::end(){
     unitTest.stop();
-    printf("End: %fs\n", unitTest.read());
+    printf("End: %fs\n\r", unitTest.read());
 }
 
 void UnitTest::assertOn(int a, int b){
     printf("Test %d: ", testCount);
     if(a == b){
-        printf("Passed\n\n");
+        printf("Passed\n\r");
     } else {
-        printf("Failed\n");
+        printf("Failed\n\r");
         while(true){
             wait(1);
         }