test: add long route timing contracts

This commit is contained in:
BruceChen 2026-04-13 17:20:46 +00:00
parent eb9d6ce356
commit b42a24e77a
5 changed files with 2083 additions and 93 deletions

View file

@ -39,4 +39,27 @@ public sealed class PathingContractBootstrapTests
if (planResult.Status == PathStatus.Success)
_output.WriteLine(PathingContractBootstrapWriter.WriteTimingFragment(scenarioId, PathingScenarioRunner.RunAccepted(scenario)));
}
[Theory]
[InlineData("same-move-straight-traverse-chain")]
[InlineData("same-move-diagonal-chain")]
[InlineData("same-move-ascend-staircase")]
[InlineData("same-move-descend-staircase")]
[InlineData("same-move-aligned-parkour-chain")]
[InlineData("mixed-traverse-turn-parkour-turn-traverse")]
[InlineData("mixed-diagonal-ascend-traverse-descend")]
[InlineData("mixed-traverse-ascend-parkour-descend")]
[InlineData("turn-density-alternating-traverse-diagonal-chain")]
[InlineData("speed-carry-repeated-traverse-ascend")]
[InlineData("speed-carry-repeated-traverse-descend")]
[InlineData("speed-carry-repeated-traverse-parkour")]
public void PrintLongRouteContractFragments(string scenarioId)
{
PathingExecutionScenario scenario = PathingExecutionScenarioCatalog.Get(scenarioId);
PathResult planResult = PathingScenarioRunner.PlanOnly(scenario);
_output.WriteLine(PathingContractBootstrapWriter.WritePlannerFragment(scenarioId, planResult));
if (planResult.Status == PathStatus.Success)
_output.WriteLine(PathingContractBootstrapWriter.WriteTimingFragment(scenarioId, PathingScenarioRunner.RunAccepted(scenario)));
}
}