summaryrefslogtreecommitdiff
path: root/test.h
diff options
context:
space:
mode:
Diffstat (limited to 'test.h')
-rw-r--r--test.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/test.h b/test.h
new file mode 100644
index 0000000..6eedc6f
--- /dev/null
+++ b/test.h
@@ -0,0 +1,15 @@
+void testing_header(const char *);
+void testing_comment(const char*);
+
+void test_int_equals_imp(const char*, int, int);
+#define test_int_equals(expression, expected) test_int_equals_imp(#expression, expression, expected)
+
+void test_void_imp(const char*);
+#define test_void(expression) test_void_imp(#expression); (void)expression
+
+void test_bool_imp(const char *, int, int);
+#define test_false(expression) test_bool_imp(#expression, expression, 0)
+#define test_true(expression) test_bool_imp(#expression, expression, 1)
+
+void test_assert(void);
+void test_ctype(void);