cleanup: test_create_world is lazy

This commit is contained in:
Enno Rehling 2015-10-13 22:31:03 +02:00
parent c70d987c09
commit cd1467f668
1 changed files with 2 additions and 4 deletions

View File

@ -28,9 +28,8 @@ static void test_give_control_building(CuTest * tc)
region *r;
test_cleanup();
test_create_world();
f = test_create_faction(0);
r = findregion(0, 0);
r = test_create_region(0, 0, 0);
b = test_create_building(r, 0);
u1 = test_create_unit(f, r);
u_set_building(u1, b);
@ -50,9 +49,8 @@ static void test_give_control_ship(CuTest * tc)
region *r;
test_cleanup();
test_create_world();
f = test_create_faction(0);
r = findregion(0, 0);
r = test_create_region(0, 0, 0);
sh = test_create_ship(r, 0);
u1 = test_create_unit(f, r);
u_set_ship(u1, sh);