summaryrefslogtreecommitdiff
path: root/test.h
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-28 19:18:50 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-28 19:18:50 -0500
commit2c9367a4a7fc159c7622f6f8a026c5eed70f3e65 (patch)
tree57ab4dd2c3ea95eb0488405fbcecb22cb749e922 /test.h
parent5ed24cf76c4031005372fe231265368863b37f8d (diff)
add test for distinct values
Diffstat (limited to 'test.h')
-rw-r--r--test.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/test.h b/test.h
index 4f763b8..38b50ae 100644
--- a/test.h
+++ b/test.h
@@ -1,3 +1,5 @@
+#include <stddef.h>
+
void testing_header(const char *);
void testing_comment(const char*);
void testing_end(void);
@@ -15,6 +17,10 @@ void test_bool_imp(const char *, int, int);
void test_string_imp(const char*, const char*, const char*);
#define test_string(expression, string) test_string_imp(#expression, expression, string)
+void test_distinct_imp(const char*, int *, size_t);
+#define test_distinct(array) test_distinct_imp(#array, array, sizeof(array) / sizeof(array[0]))
+
void test_assert(void);
void test_ctype(void);
void test_locale(void);
+void test_errno(void);