forked from github/server
backfill tests for renaming regions.
This commit is contained in:
parent
ff09defa69
commit
bc44caa17f
1 changed files with 8 additions and 0 deletions
|
@ -1055,6 +1055,14 @@ static void test_name_cmd(CuTest *tc) {
|
||||||
CuAssertStrEquals(tc, "Hodor", f->name);
|
CuAssertStrEquals(tc, "Hodor", f->name);
|
||||||
free_order(ord);
|
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();
|
test_cleanup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue