diff options
Diffstat (limited to 'tests/demo.c')
| -rw-r--r-- | tests/demo.c | 40 |
1 files changed, 28 insertions, 12 deletions
diff --git a/tests/demo.c b/tests/demo.c index 2b874b9e..cfa879da 100644 --- a/tests/demo.c +++ b/tests/demo.c @@ -15,19 +15,35 @@ test_main("Things work", { test_so(y == 3); }); -test_convey("Bounce", { - test_convey("Arithmetic", { - test_so(y == 2); - test_convey("Addition", { - test_so(x + y == 3); - test_so(x + y + y == 5); - y = 5; - test_so(x + y == 6); + 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(); + test_so(0 == 1); }); - test_convey("Subtraction", { - test_so(x - y == -1); - test_so(y - x == 1); + test_convey("Ending", { + test_so(2 == 2); }); }); -}); + }) |
