forked from github/server
disable test for seaserpent piracy (planned for 3.8)
This commit is contained in:
parent
1b3c8ea466
commit
bdc5372537
1 changed files with 6 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue