From 3bbda921b7180340ccc50c1a8a2bf01631508f36 Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Thu, 31 Mar 2011 12:11:19 +0100 Subject: Created a little Test::More-like library for TAP testing --- t/01base.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 't/01base.c') 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 #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; } -- cgit v1.2.3