termo/tests/01base.c

30 lines
615 B
C
Raw Normal View History

#include <stdio.h>
2014-10-14 00:24:47 +02:00
#include "../termo.h"
#include "taplib.h"
int
main (int argc, char *argv[])
{
2014-10-14 00:24:47 +02:00
termo_t *tk;
plan_tests (6);
2014-10-14 00:24:47 +02:00
tk = termo_new_abstract ("vt100", NULL, 0);
ok (!!tk, "termo_new_abstract");
is_int (termo_get_buffer_size (tk), 256, "termo_get_buffer_size");
ok (termo_is_started (tk), "termo_is_started true after construction");
2014-10-14 00:24:47 +02:00
termo_stop (tk);
ok (!termo_is_started (tk),
"termo_is_started false after termo_stop()");
2014-10-14 00:24:47 +02:00
termo_start (tk);
ok (termo_is_started (tk),
"termo_is_started true after termo_start()");
2014-10-14 00:24:47 +02:00
termo_destroy (tk);
2014-10-14 00:24:47 +02:00
ok (1, "termo_free");
return exit_status ();
}