|
|
|
@ -8,8 +8,8 @@ START_TEST(test_check) {
|
|
|
|
|
}
|
|
|
|
|
END_TEST
|
|
|
|
|
|
|
|
|
|
Suite* test_suite(void) {
|
|
|
|
|
Suite *s = suite_create("Money");
|
|
|
|
|
Suite *test_suite(void) {
|
|
|
|
|
Suite *s = suite_create("Test");
|
|
|
|
|
|
|
|
|
|
TCase *tc_core = tcase_create("Core");
|
|
|
|
|
tcase_add_test(tc_core, test_check);
|
|
|
|
@ -19,14 +19,14 @@ Suite* test_suite(void) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int main (void) {
|
|
|
|
|
int main(void) {
|
|
|
|
|
int number_failed;
|
|
|
|
|
|
|
|
|
|
Suite *s = test_suite();
|
|
|
|
|
SRunner *sr = srunner_create(s);
|
|
|
|
|
srunner_run_all(sr, CK_NORMAL);
|
|
|
|
|
number_failed = srunner_ntests_failed(sr);
|
|
|
|
|
srunner_free (sr);
|
|
|
|
|
srunner_free(sr);
|
|
|
|
|
|
|
|
|
|
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
|
|
|
|
|
}
|
|
|
|
|