From 340692299ed834f962b83b1bc0eb6f49471ca556 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Tue, 18 Oct 2022 19:33:47 +0100 Subject: Add beginnings of test framework. Just contains a couple of very simple UTF-8 tests for now. --- test/tap.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/tap.h (limited to 'test/tap.h') diff --git a/test/tap.h b/test/tap.h new file mode 100644 index 0000000..fc0df61 --- /dev/null +++ b/test/tap.h @@ -0,0 +1,15 @@ +#ifndef TAP_H +#define TAP_H + +#include + +#define tap_is(a, b, message) ((a) == (b) ? tap_ok((message)) : tap_not_ok((message))) +#define tap_isnt(a, b, message) ((a) != (b) ? tap_ok((message)) : tap_not_ok((message))) + +void tap_version(size_t version); +void tap_plan(void); +void tap_ok(const char *message, ...); +void tap_not_ok(const char *message, ...); +void tap_todo(const char *message); + +#endif /* TAP_H */ -- cgit v1.2.3