Prefix all getters with "get"
This commit is contained in:
@@ -19,7 +19,7 @@ TEST_CASE("Simulation::currentTick starts at 0", "[simulation]")
|
||||
{
|
||||
const Simulation sim(loadConfig());
|
||||
|
||||
REQUIRE(sim.currentTick() == 0);
|
||||
REQUIRE(sim.getCurrentTick() == 0);
|
||||
}
|
||||
|
||||
TEST_CASE("Simulation::tick increments currentTick by 1", "[simulation]")
|
||||
@@ -28,7 +28,7 @@ TEST_CASE("Simulation::tick increments currentTick by 1", "[simulation]")
|
||||
|
||||
sim.tick();
|
||||
|
||||
REQUIRE(sim.currentTick() == 1);
|
||||
REQUIRE(sim.getCurrentTick() == 1);
|
||||
}
|
||||
|
||||
TEST_CASE("Simulation::tick 10 times yields currentTick == 10", "[simulation]")
|
||||
@@ -40,7 +40,7 @@ TEST_CASE("Simulation::tick 10 times yields currentTick == 10", "[simulation]")
|
||||
sim.tick();
|
||||
}
|
||||
|
||||
REQUIRE(sim.currentTick() == 10);
|
||||
REQUIRE(sim.getCurrentTick() == 10);
|
||||
}
|
||||
|
||||
TEST_CASE("Simulation::drainBeamFiredEvents returns empty initially", "[simulation]")
|
||||
|
||||
Reference in New Issue
Block a user