aboutsummaryrefslogtreecommitdiffstats
path: root/example/tests.c
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2021-02-13 02:54:35 +0100
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2021-02-13 02:54:35 +0100
commit3fa5f5cd68a4a382c6b48bf5a174ecc816d43d39 (patch)
tree3eb25f4c25cf2f5d94bbce153e064f91d48168cc /example/tests.c
parente50dcd700919804e1256b60d39f25c5fc790476b (diff)
downloadmtest-3fa5f5cd68a4a382c6b48bf5a174ecc816d43d39.tar.gz
mtest-3fa5f5cd68a4a382c6b48bf5a174ecc816d43d39.tar.bz2
mtest-3fa5f5cd68a4a382c6b48bf5a174ecc816d43d39.zip
mtest.h: add new mt_run_quick() macro
Helper macro, greate when you want to run a test with single function, or expression check. Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
Diffstat (limited to 'example/tests.c')
-rw-r--r--example/tests.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/example/tests.c b/example/tests.c
index b3e5365..1f2c68c 100644
--- a/example/tests.c
+++ b/example/tests.c
@@ -4,6 +4,7 @@
#include "sub-tests.h"
#include "named-tests.h"
#include "param-tests.h"
+#include "quick-tests.h"
#include "calc.h"
@@ -55,6 +56,12 @@ int main(void)
named_param_test_in_loop();
/*
+ * run multiple, one check, quick tests
+ */
+
+ quick_tests();
+
+ /*
* and at the end we call mt_return, which will print clousure information
* and will exit test program with apropriate return code
*/