From cd1467f66895e33dcf6d3d8eec48c1f352951a60 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Tue, 13 Oct 2015 22:31:03 +0200 Subject: [PATCH] cleanup: test_create_world is lazy --- src/economy.test.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/economy.test.c b/src/economy.test.c index 08b8bea56..09fa1157f 100644 --- a/src/economy.test.c +++ b/src/economy.test.c @@ -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);