zathura/tests/test_session.c
2018-05-21 11:38:55 +02:00

32 lines
718 B
C

/* See LICENSE file for license and copyright information */
#include <check.h>
#include "zathura.h"
#include "tests.h"
START_TEST(test_create) {
zathura_t* zathura = zathura_create();
fail_unless(zathura != NULL, "Could not create session", NULL);
fail_unless(zathura_init(zathura) == true, "Could not initialize session", NULL);
zathura_free(zathura);
} END_TEST
static Suite* suite_session(void)
{
TCase* tcase = NULL;
Suite* suite = suite_create("Session");
/* basic */
tcase = tcase_create("basic");
tcase_add_checked_fixture(tcase, setup, NULL);
tcase_add_test(tcase, test_create);
suite_add_tcase(suite, tcase);
return suite;
}
int main()
{
return run_suite(suite_session());
}