#include #include "test.h" test_main("Things work", { int x; int y; x = 1; y = 2; test_convey("X is one", { test_debugf("A logged message."); test_assert(x == 1); }); test_convey("Y is two", { test_so(y == 2); y = 3; test_so(y == 3); }); test_convey("Operations (Outer)", { test_convey("Arithmetic", { test_so(y == 2); test_convey("Addition", { test_so(x + y == 3); test_so(x + y + y == 5); test_so(x == 9); y = 5; test_so(x + y == 6); }); test_convey("Subtraction", { test_so(x - y == -1); test_so(y - x == 1); }); }); }); test_convey("Middle test is skipped", { test_convey("Start", { test_so(1 == 1); }); test_convey("Middle (Skip?)", { test_so(9 - 1 == 8); test_skip("forced skip"); test_so(0 == 1); }); test_convey("Ending", { test_so(2 == 2); }); }); })