From be5d81acd1bb914187d352d76aeeedc3f81c06b2 Mon Sep 17 00:00:00 2001 From: Philipp Dreher Date: Fri, 6 Nov 2015 20:51:38 +0100 Subject: [PATCH] Revert "new test" This reverts commit cb16315e7cf69bef4e3553c686d66e11145e9135. --- src/kernel/build.test.c | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/src/kernel/build.test.c b/src/kernel/build.test.c index bda6475a3..b879295e1 100644 --- a/src/kernel/build.test.c +++ b/src/kernel/build.test.c @@ -261,34 +261,6 @@ static void test_build_building_success(CuTest *tc) { teardown_build(&bf); } -static void test_build_castle_skillcap(CuTest *tc) { - const building_type *btype; - build_fixture bf = { 0 }; - unit *u; - const resource_type *rtype; - - u = setup_build(&bf); - btype = bt_find("castle"); - assert(btype); - - set_number(u, 1000); - set_level(u, SK_BUILDING, 1); - rtype = get_resourcetype(R_STONE); - i_change(&bf.u->items, rtype->itype, 1000); - - u->orders = create_order(K_MAKE, u->faction->locale, 0); - - CuAssertIntEquals(tc, 10, build_building(u, btype, 0, 100, u->orders)); - CuAssertIntEquals(tc, 10, u->building->size); - - set_level(u, SK_BUILDING, 3); - - CuAssertIntEquals(tc, 240, build_building(u, btype, 0, 200, u->orders)); - CuAssertIntEquals(tc, 250, u->building->size); - - teardown_build(&bf); -} - CuSuite *get_build_suite(void) { CuSuite *suite = CuSuiteNew(); @@ -303,7 +275,6 @@ CuSuite *get_build_suite(void) SUITE_ADD_TEST(suite, test_build_building_success); SUITE_ADD_TEST(suite, test_build_building_with_golem); SUITE_ADD_TEST(suite, test_build_building_no_materials); - SUITE_ADD_TEST(suite, test_build_castle_skillcap); return suite; }