Skip to content

Commit dd32aa1

Browse files
committed
Remove IsHQTent tests (require features from another branch)
1 parent 0353ac7 commit dd32aa1

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

tests/s25Main/integration/testGamePlayer.cpp

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -119,28 +119,3 @@ BOOST_FIXTURE_TEST_CASE(ProductivityStats, WorldFixtureEmpty1P)
119119
BOOST_TEST(buildingRegister.CalcProductivities() == expectedProductivity, per_element());
120120
BOOST_TEST(buildingRegister.CalcAverageProductivity() == avgProd);
121121
}
122-
123-
BOOST_FIXTURE_TEST_CASE(IsHQTent_ReturnsFalse_IfPrimaryHQIsNotTent, WorldFixtureEmpty1P)
124-
{
125-
GamePlayer& p1 = world.GetPlayer(0);
126-
127-
// place another HQ that is a tent
128-
MapPoint newHqPos = p1.GetHQPos();
129-
newHqPos.x += 3;
130-
BuildingFactory::CreateBuilding(world, BuildingType::Headquarters, newHqPos, 0, Nation::Babylonians, true);
131-
132-
BOOST_TEST_REQUIRE(p1.IsHQTent() == false);
133-
}
134-
135-
BOOST_FIXTURE_TEST_CASE(IsHQTent_ReturnsTrue_IfPrimaryHQIsTent, WorldFixtureEmpty1P)
136-
{
137-
GamePlayer& p1 = world.GetPlayer(0);
138-
p1.SetHQIsTent(true);
139-
140-
// place another HQ that is not a tent
141-
MapPoint newHqPos = p1.GetHQPos();
142-
newHqPos.x += 3;
143-
BuildingFactory::CreateBuilding(world, BuildingType::Headquarters, newHqPos, 0, Nation::Babylonians, false);
144-
145-
BOOST_TEST_REQUIRE(p1.IsHQTent() == true);
146-
}

0 commit comments

Comments
 (0)