mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-24 08:12:53 +01:00
Remove default value for SimplePathfindingScenario steps
Remove the default value as it's more consistent to just always have the test case specify it explicitly.
This commit is contained in:
@@ -159,7 +159,7 @@ struct SimplePathfindingScenario
|
||||
TileCoordsXYZ goal;
|
||||
uint32_t steps;
|
||||
|
||||
SimplePathfindingScenario(const char* _name, const TileCoordsXYZ& _start, const TileCoordsXYZ& _goal, int _steps = 10000)
|
||||
SimplePathfindingScenario(const char* _name, const TileCoordsXYZ& _start, const TileCoordsXYZ& _goal, int _steps)
|
||||
: name(_name)
|
||||
, start(_start)
|
||||
, goal(_goal)
|
||||
@@ -231,7 +231,7 @@ TEST_P(ImpossiblePathfindingTest, CannotFindPathFromStartToGoal)
|
||||
INSTANTIATE_TEST_CASE_P(
|
||||
ForScenario, ImpossiblePathfindingTest,
|
||||
::testing::Values(
|
||||
SimplePathfindingScenario("PathWithGap", { 6, 9, 14 }, { 10, 9, 14 }),
|
||||
SimplePathfindingScenario("PathWithFences", { 6, 7, 14 }, { 10, 7, 14 }),
|
||||
SimplePathfindingScenario("PathWithCliff", { 10, 5, 14 }, { 12, 5, 14 })),
|
||||
SimplePathfindingScenario("PathWithGap", { 6, 9, 14 }, { 10, 9, 14 }, 10000),
|
||||
SimplePathfindingScenario("PathWithFences", { 6, 7, 14 }, { 10, 7, 14 }, 10000),
|
||||
SimplePathfindingScenario("PathWithCliff", { 10, 5, 14 }, { 12, 5, 14 }, 10000)),
|
||||
SimplePathfindingScenario::ToName);
|
||||
|
||||
Reference in New Issue
Block a user