From 5293a691d6036d9bccdfceab250443ca3dc92051 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 18 Dec 2016 18:07:12 -0800 Subject: Add test groups, free memory used by tests. --- tests/demo.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'tests/demo.c') diff --git a/tests/demo.c b/tests/demo.c index c38dd3b9..26210391 100644 --- a/tests/demo.c +++ b/tests/demo.c @@ -1,7 +1,10 @@ #include +#include +#include #include "test.h" -test_main("Things work", { +test_main_group({ + test_group("Things work", { int x; int y; x = 1; @@ -47,4 +50,13 @@ test_main("Things work", { }); }); + }); + + test_group("Second group", { + int x = 1; + test_convey("x is 1", { + sleep(2); + test_so(x == 1); + }); + }); }) -- cgit v1.2.3-70-g09d2