You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
modetw/tests/check_exception_t.c

27 lines
471 B

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