aboutsummaryrefslogtreecommitdiff
path: root/t/01base.c
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2011-03-31 12:11:19 +0100
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2011-03-31 12:11:19 +0100
commit3bbda921b7180340ccc50c1a8a2bf01631508f36 (patch)
tree787f87e96597293bff639162ccb4a67c59fcb8eb /t/01base.c
parent620038af7274a338160e9ad0a787cc21e4fc64ea (diff)
downloadtermo-3bbda921b7180340ccc50c1a8a2bf01631508f36.tar.gz
termo-3bbda921b7180340ccc50c1a8a2bf01631508f36.tar.xz
termo-3bbda921b7180340ccc50c1a8a2bf01631508f36.zip
Created a little Test::More-like library for TAP testing
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;
}