diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2011-03-31 11:38:40 +0100 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2011-03-31 11:38:40 +0100 |
commit | c228335bcac2a691a3048d7ce50f25079bfcea8c (patch) | |
tree | b16f461dcbaf3ccbe3df804181f2915dc9c6cf11 /t/01base.c | |
parent | 26ef76349e5c009740baa985cb16963e79d13765 (diff) | |
download | termo-c228335bcac2a691a3048d7ce50f25079bfcea8c.tar.gz termo-c228335bcac2a691a3048d7ce50f25079bfcea8c.tar.xz termo-c228335bcac2a691a3048d7ce50f25079bfcea8c.zip |
Created a unit-testing system using perl's prove
Diffstat (limited to 't/01base.c')
-rw-r--r-- | t/01base.c | 20 |
1 files changed, 20 insertions, 0 deletions
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 <stdio.h> +#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; +} |