make tests run again
This commit is contained in:
@@ -17,16 +17,14 @@ static GameConfig loadConfig()
|
||||
|
||||
TEST_CASE("Simulation::currentTick starts at 0", "[simulation]")
|
||||
{
|
||||
const GameConfig config = loadConfig();
|
||||
const Simulation sim(config);
|
||||
const Simulation sim(loadConfig());
|
||||
|
||||
REQUIRE(sim.currentTick() == 0);
|
||||
}
|
||||
|
||||
TEST_CASE("Simulation::tick increments currentTick by 1", "[simulation]")
|
||||
{
|
||||
const GameConfig config = loadConfig();
|
||||
Simulation sim(config);
|
||||
Simulation sim(loadConfig());
|
||||
|
||||
sim.tick();
|
||||
|
||||
@@ -35,8 +33,7 @@ TEST_CASE("Simulation::tick increments currentTick by 1", "[simulation]")
|
||||
|
||||
TEST_CASE("Simulation::tick 10 times yields currentTick == 10", "[simulation]")
|
||||
{
|
||||
const GameConfig config = loadConfig();
|
||||
Simulation sim(config);
|
||||
Simulation sim(loadConfig());
|
||||
|
||||
for (int i = 0; i < 10; ++i)
|
||||
{
|
||||
@@ -48,16 +45,14 @@ TEST_CASE("Simulation::tick 10 times yields currentTick == 10", "[simulation]")
|
||||
|
||||
TEST_CASE("Simulation::drainFireEvents returns empty initially", "[simulation]")
|
||||
{
|
||||
const GameConfig config = loadConfig();
|
||||
Simulation sim(config);
|
||||
Simulation sim(loadConfig());
|
||||
|
||||
REQUIRE(sim.drainFireEvents().empty());
|
||||
}
|
||||
|
||||
TEST_CASE("Simulation::drainFireEvents clears queue on drain", "[simulation]")
|
||||
{
|
||||
const GameConfig config = loadConfig();
|
||||
Simulation sim(config);
|
||||
Simulation sim(loadConfig());
|
||||
|
||||
// First drain: empty.
|
||||
sim.drainFireEvents();
|
||||
@@ -68,8 +63,7 @@ TEST_CASE("Simulation::drainFireEvents clears queue on drain", "[simulation]")
|
||||
|
||||
TEST_CASE("Simulation::drainBlueprintDropEvents returns empty initially", "[simulation]")
|
||||
{
|
||||
const GameConfig config = loadConfig();
|
||||
Simulation sim(config);
|
||||
Simulation sim(loadConfig());
|
||||
|
||||
REQUIRE(sim.drainBlueprintDropEvents().empty());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user