mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-29 13:04:59 +00:00
test: add long route timing contracts
This commit is contained in:
parent
eb9d6ce356
commit
b42a24e77a
5 changed files with 2083 additions and 93 deletions
|
|
@ -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)));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue