diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2011-03-31 12:11:19 +0100 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2011-03-31 12:11:19 +0100 |
commit | 3bbda921b7180340ccc50c1a8a2bf01631508f36 (patch) | |
tree | 787f87e96597293bff639162ccb4a67c59fcb8eb /t/01base.c | |
parent | 620038af7274a338160e9ad0a787cc21e4fc64ea (diff) | |
download | termo-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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; } |