57 const object *
ob =
find_god(
"FlyingSpaghettiMonster");
64 FAIL_UNLESS(god != NULL,
"Undead must have a race");
65 ck_assert_str_eq(god,
"Devourers");
76 Suite *s = suite_create(
"holy");
77 TCase *tc_core = tcase_create(
"Core");
78 tcase_set_timeout(tc_core, 60);
83 suite_add_tcase(s, tc_core);
84 tcase_add_test(tc_core, test_get_random_god);
85 tcase_add_test(tc_core, test_find_god);
86 tcase_add_test(tc_core, test_find_god_invalid);
87 tcase_add_test(tc_core, test_get_god_for_race);
88 tcase_add_test(tc_core, test_get_god_for_race_invalid);
96 SRunner *sr = srunner_create(s);
98 srunner_set_xml(sr, LOGDIR
"/unit/common/holy.xml");
99 srunner_set_log(sr, LOGDIR
"/unit/common/holy.out");
100 srunner_run_all(sr, CK_ENV);
101 nf = srunner_ntests_failed(sr);
103 return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;