#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; }