]> pd.if.org Git - ctap/blob - ctap.h
Initial commit
[ctap] / ctap.h
1 #ifndef TAP_H_
2 #define TAP_H_ 1
3
4 #include <stdarg.h>
5
6 void plan(int tests);
7 void plan_lazy(void);
8 void skip_all(const char *why, ...);
9 void okv(int pass, const char *fmt, va_list args);
10 void ok(int pass, char *fmt, ...);
11 void ok_block(unsigned long count, int pass, const char *fmt, ...);
12 void skip(const char *why, ...);
13 void skip_block(unsigned long count, const char *why, ...);
14 void bail(const char *fmt, ...);
15 void sysbail(const char *fmt, ...);
16 void sysdiag(const char *fmt, ...);
17 void diag(const char *fmt, ...);
18 void is_hex(unsigned long wanted, unsigned long seen, const char *fmt, ...);
19 void is_int(long wanted, long seen, const char *fmt, ...);
20 void is_double(double wanted, double seen, double eps, const char *fmt, ...);
21 void is_string(const char *wanted, const char *seen, const char *fmt, ...);
22
23 #endif