Migration from 0.5.0 to 0.6.x |
// previous usage with unit--0.5.0 #include "unit--.h" testSuite(MySuite); testCase(CompareCase, MySuite); void test() { int x = 1; int y = x + 2; assertTrue(x < y); } endCase(CompareCase); |
|\ | \ | \ | / | / |/ |
|\ | \ | \ | / | / |/ |
// current usage with unit--0.6.x #include "unit--.h" testSuite(MySuite); testCase(CompareCase, MySuite) { int x = 1; int y = x + 2; assertTrue(x < y); } |