aboutsummaryrefslogtreecommitdiff
path: root/t/01base.c
diff options
context:
space:
mode:
Diffstat (limited to 't/01base.c')
-rw-r--r--t/01base.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/01base.c b/t/01base.c
index 7fbddc0..0340287 100644
--- a/t/01base.c
+++ b/t/01base.c
@@ -1,20 +1,20 @@
#include <stdio.h>
#include "termkey.h"
+#include "taplib.h"
int main(int argc, char *argv[])
{
TermKey *tk;
- printf("1..2\n");
+ plan_tests(2);
tk = termkey_new(0, TERMKEY_FLAG_NOTERMIOS);
- printf(tk ? "" : "not ");
- printf("ok 1 - termkey_new\n");
+ ok(!!tk, "termkey_new");
termkey_destroy(tk);
- printf("ok 2 - termkey_free\n");
+ ok(1, "termkey_free");
return 0;
}