backfill tests for renaming regions.

This commit is contained in:
Enno Rehling 2016-11-11 02:07:11 +01:00
parent ff09defa69
commit bc44caa17f
1 changed files with 8 additions and 0 deletions

View File

@ -1055,6 +1055,14 @@ static void test_name_cmd(CuTest *tc) {
CuAssertStrEquals(tc, "Hodor", f->name);
free_order(ord);
ord = create_order(K_NAME, f->locale, "%s ' Ho\tdor '", LOC(f->locale, parameters[P_REGION]));
name_cmd(u, ord);
CuAssertPtrNotNull(tc, test_find_messagetype(f->msgs, "error145"));
u->building = test_create_building(u->region, 0);
name_cmd(u, ord);
CuAssertStrEquals(tc, "Hodor", u->region->land->name);
free_order(ord);
test_cleanup();
}