this is a class for unit testing
This is an UnitTest library. You can use for POST.
Revision 4:13e7349640c0, committed 2019-11-20
- Comitter:
- sPymbed
- Date:
- Wed Nov 20 13:27:27 2019 +0000
- Parent:
- 3:658ba851ab74
- Commit message:
- fixed: print line in screen
Changed in this revision
UnitTest.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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); }