sample usage |
// 1. include the header file #include "unit--.h" // 2. define your own test suites to organize test cases testSuite(MySuite); // 3. define test cases, and attach them to some suite testCase(CompareCase, MySuite) // 4. write your test code { int x = 1; int y = x + 2; assertTrue(x < y); } |