This repository has been archived on 2021-06-27. You can view files and clone it, but cannot push or open issues or pull requests.
modetw/tests/check_exception_t.c

28 lines
471 B
C

#include "check_check.h"
#include "../src/exception_t.h"
START_TEST(test_exception_init)
{
exception_t *e = NULL;
e = exception_init();
ck_assert_ptr_nonnull(e);
ck_assert_int_eq(e->type, NO_ERROR);
exception_free(e);
}
END_TEST
Suite*
exception_t_suite(void)
{
Suite *s;
TCase *tc_core;
s = suite_create ("exception_t");
tc_core = tcase_create ("core");
tcase_add_test(tc_core, test_exception_init);
suite_add_tcase(s, tc_core);
return s;
}