From c228335bcac2a691a3048d7ce50f25079bfcea8c Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Thu, 31 Mar 2011 11:38:40 +0100 Subject: Created a unit-testing system using perl's prove --- t/01base.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 t/01base.c (limited to 't') diff --git a/t/01base.c b/t/01base.c new file mode 100644 index 0000000..7fbddc0 --- /dev/null +++ b/t/01base.c @@ -0,0 +1,20 @@ +#include +#include "termkey.h" + +int main(int argc, char *argv[]) +{ + TermKey *tk; + + printf("1..2\n"); + + tk = termkey_new(0, TERMKEY_FLAG_NOTERMIOS); + + printf(tk ? "" : "not "); + printf("ok 1 - termkey_new\n"); + + termkey_destroy(tk); + + printf("ok 2 - termkey_free\n"); + + return 0; +} -- cgit v1.2.3-70-g09d2