From bdc5372537e37b388a99ffad0687fdb99037ab0b Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Tue, 24 Nov 2015 16:12:33 +0100 Subject: [PATCH] disable test for seaserpent piracy (planned for 3.8) --- src/monsters.test.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/monsters.test.c b/src/monsters.test.c index e3af8351d..aba9d9c4d 100644 --- a/src/monsters.test.c +++ b/src/monsters.test.c @@ -35,6 +35,7 @@ static void init_language(void) locale_setstring(lang, "keyword::study", "LERNE"); locale_setstring(lang, "keyword::tax", "TREIBE"); locale_setstring(lang, "keyword::loot", "PLUENDERE"); + locale_setstring(lang, "keyword::piracy", "PIRATERIE"); locale_setstring(lang, "keyword::guard", "BEWACHE"); locale_setstring(lang, "keyword::move", "NACH"); locale_setstring(lang, "keyword::message", "BOTSCHAFT"); @@ -145,7 +146,7 @@ static void test_monsters_waiting(CuTest * tc) test_cleanup(); } -static void test_seaserpent_attack(CuTest * tc) +static void test_seaserpent_piracy(CuTest * tc) { faction *f, *f2; region *r; @@ -159,14 +160,14 @@ static void test_seaserpent_attack(CuTest * tc) m = test_create_unit(m->faction, r); u_setrace(m, rc = test_create_race("seaserpent")); assert(!m->region->land); - // FIXME: write an extra test for sea serpent piracy? - // fset(m, UFL_MOVED); + fset(m, UFL_MOVED); // fset(rc, RCF_ATTACK_MOVED); set_param(&global.parameters, "rules.monsters.attack_chance", "1"); plan_monsters(f2); + CuAssertPtrNotNull(tc, find_order("PIRATERIE", m)); CuAssertPtrNotNull(tc, find_order("ATTACKIERE 2", m)); test_cleanup(); } @@ -264,11 +265,11 @@ CuSuite *get_monsters_suite(void) CuSuite *suite = CuSuiteNew(); SUITE_ADD_TEST(suite, test_monsters_attack); SUITE_ADD_TEST(suite, test_monsters_attack_ocean); - SUITE_ADD_TEST(suite, test_seaserpent_attack); + DISABLE_TEST(suite, test_seaserpent_piracy); DISABLE_TEST(suite, test_monsters_waiting); SUITE_ADD_TEST(suite, test_monsters_attack_not); SUITE_ADD_TEST(suite, test_dragon_attacks_the_rich); DISABLE_TEST(suite, test_dragon_moves); DISABLE_TEST(suite, test_monsters_learn_exp); return suite; -} \ No newline at end of file +}