fix: align overview smoke plan start with EM path
This commit is contained in:
@@ -130,10 +130,15 @@ internal static class WebAssetChecks
|
||||
"smoke snapshot has exactly one dynamic active segment");
|
||||
VisualizationMarker smoothStart = staticSnapshot.StaticMarkers.Single(marker => marker.Kind == "smooth-start");
|
||||
VisualizationMarker planStart = dynamicSnapshot.DynamicMarkers.Single(marker => marker.Kind == "plan-start");
|
||||
VisualizationPolyline current = dynamicSnapshot.DynamicPolylines.Single(line => line.Kind == "current");
|
||||
Verification.NearlyEqual(smoothStart.Position.X, planStart.Position.X,
|
||||
"smoke snapshot overlaps smoothed-path and plan-start x coordinates");
|
||||
Verification.NearlyEqual(smoothStart.Position.Y, planStart.Position.Y,
|
||||
"smoke snapshot overlaps smoothed-path and plan-start y coordinates");
|
||||
Verification.NearlyEqual(current.Points[0].X, planStart.Position.X,
|
||||
"smoke snapshot aligns plan-start x with the current EM trajectory start");
|
||||
Verification.NearlyEqual(current.Points[0].Y, planStart.Position.Y,
|
||||
"smoke snapshot aligns plan-start y with the current EM trajectory start");
|
||||
Verification.Equal(2, staticSnapshot.DirectionSegments.Count, "smoke snapshot has two direction segments");
|
||||
Verification.True(staticSnapshot.StaticMarkers.Any(marker => marker.Kind == "gear-switch"), "smoke snapshot has a gear marker");
|
||||
Verification.True(staticSnapshot.ConfigurationGroups.Count > 0, "smoke snapshot has effective configuration");
|
||||
|
||||
Reference in New Issue
Block a user