Skip to content

Commit

Permalink
Remove IsHQTent tests (require features from another branch)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubaau committed Aug 5, 2024
1 parent 0353ac7 commit dd32aa1
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions tests/s25Main/integration/testGamePlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,28 +119,3 @@ BOOST_FIXTURE_TEST_CASE(ProductivityStats, WorldFixtureEmpty1P)
BOOST_TEST(buildingRegister.CalcProductivities() == expectedProductivity, per_element());
BOOST_TEST(buildingRegister.CalcAverageProductivity() == avgProd);
}

BOOST_FIXTURE_TEST_CASE(IsHQTent_ReturnsFalse_IfPrimaryHQIsNotTent, WorldFixtureEmpty1P)
{
GamePlayer& p1 = world.GetPlayer(0);

// place another HQ that is a tent
MapPoint newHqPos = p1.GetHQPos();
newHqPos.x += 3;
BuildingFactory::CreateBuilding(world, BuildingType::Headquarters, newHqPos, 0, Nation::Babylonians, true);

BOOST_TEST_REQUIRE(p1.IsHQTent() == false);
}

BOOST_FIXTURE_TEST_CASE(IsHQTent_ReturnsTrue_IfPrimaryHQIsTent, WorldFixtureEmpty1P)
{
GamePlayer& p1 = world.GetPlayer(0);
p1.SetHQIsTent(true);

// place another HQ that is not a tent
MapPoint newHqPos = p1.GetHQPos();
newHqPos.x += 3;
BuildingFactory::CreateBuilding(world, BuildingType::Headquarters, newHqPos, 0, Nation::Babylonians, false);

BOOST_TEST_REQUIRE(p1.IsHQTent() == true);
}

0 comments on commit dd32aa1

Please sign in to comment.