zathura/tests/test_session.c

26 lines
586 B
C
Raw Normal View History

2012-03-19 17:00:34 +01:00
/* See LICENSE file for license and copyright information */
#include <check.h>
2014-11-07 15:57:46 +01:00
#include "zathura.h"
2012-03-19 17:00:34 +01:00
START_TEST(test_create) {
2012-08-30 20:07:50 +02:00
zathura_t* zathura = zathura_create();
2012-03-19 17:08:23 +01:00
fail_unless(zathura != NULL, "Could not create session", NULL);
2012-08-30 20:07:50 +02:00
fail_unless(zathura_init(zathura) == true, "Could not initialize session", NULL);
2012-03-19 17:00:34 +01:00
zathura_free(zathura);
} END_TEST
Suite* suite_session()
{
TCase* tcase = NULL;
Suite* suite = suite_create("Session");
/* basic */
tcase = tcase_create("basic");
tcase_add_test(tcase, test_create);
suite_add_tcase(suite, tcase);
return suite;
}