this is a class for unit testing
This is an UnitTest library. You can use for POST.
Diff: UnitTest.cpp
- Revision:
- 3:658ba851ab74
- Parent:
- 2:543a87f138d2
- Child:
- 4:13e7349640c0
--- a/UnitTest.cpp Mon Nov 06 15:44:25 2017 +0000 +++ b/UnitTest.cpp Wed Sep 11 10:36:53 2019 +0000 @@ -11,9 +11,9 @@ printf("End: %fs\n", unitTest.read()); } -void UnitTest::assert(int a, int b){ +void UnitTest::assertOn(int a, int b){ printf("Test %d: ", testCount); - if(a==b){ + if(a == b){ printf("Passed\n\n"); } else { printf("Failed\n");