=== modified file 't/taplib.c' --- t/taplib.c 2011-03-31 11:46:06 +0000 +++ t/taplib.c 2011-03-31 11:11:19 +0000 @@ -1,8 +1,6 @@ #include "taplib.h" #include -#include -#include static int nexttest = 1; static int _exit_status = 0; @@ -19,38 +17,6 @@ _exit_status = 1; } -void diag(char *fmt, ...) -{ - va_list args; - va_start(args, fmt); - - fprintf(stderr, "# "); - vfprintf(stderr, fmt, args); - fprintf(stderr, "\n"); - - va_end(args); -} - -void is_int(int got, int expect, char *name) -{ - if(got == expect) - ok(1, name); - else { - ok(0, name); - diag("got %d expected %d", got, expect); - } -} - -void is_str(char *got, char *expect, char *name) -{ - if(strcmp(got, expect) == 0) - ok(1, name); - else { - ok(0, name); - diag("got '%s' expected '%s'", got, expect); - } -} - int exit_status(void) { return _exit_status; === modified file 't/taplib.h' --- t/taplib.h 2011-03-31 11:46:06 +0000 +++ t/taplib.h 2011-03-31 11:11:19 +0000 @@ -1,5 +1,3 @@ void plan_tests(int n); void ok(int cmp, char *name); -void is_int(int got, int expect, char *name); -void is_str(char *got, char *expect, char *name); int exit_status(void);