50 int map_reset_time, player_charisma,
arch;
53 static const char *sell_archs[] = {
"fl_corpse",
"Pdragon_mail", NULL };
61 strncpy(
map->path,
"test",
sizeof(
map->path) - 1);
70 for (player_charisma = 1; player_charisma <= 30; player_charisma++) {
71 player->stats.Cha = player_charisma;
72 for (map_reset_time = 0; map_reset_time < 1000; map_reset_time++) {
73 map->reset_time = map_reset_time;
75 FAIL_UNLESS(
cost < 18446744073710,
"mega price %" FMT64U " for charisma %d reset_time %d!",
cost, player_charisma, map_reset_time);
86 Suite *s = suite_create(
"shop");
87 TCase *tc_core = tcase_create(
"Core");
92 suite_add_tcase(s, tc_core);
93 tcase_add_test(tc_core, test_query_cost);
101 SRunner *sr = srunner_create(s);
103 srunner_set_fork_status(sr, CK_NOFORK);
109 srunner_set_xml(sr, LOGDIR
"/unit/server/shop.xml");
110 srunner_set_log(sr, LOGDIR
"/unit/server/shop.out");
111 srunner_run_all(sr, CK_ENV);
112 nf = srunner_ntests_failed(sr);
114 return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;