Checks road-route progress, rerouting cooldown, voice guidance and position publication.
Subsystem: Avionics, navigation and flight guidance
Fixture/harness: routeguidancetests
Setup: Explicit setup symbols: Fixture. The standalone RouteGuidanceTests harness owns the inputs, local helpers and assertion sink used by the case files below. Fixture is scoped to this harness; similarly named fixtures in other executables are independent.
Build/entry point: Tests/RouteGuidanceTests.vcxproj; declared configurations: Debug|Win32, Release|x64.
RouteGuidanceTests.cpp
Source: Tests/RouteGuidanceTests.cpp
Check Rerouting
Fixture: Route Guidance tests
Case symbol: CheckRerouting
Source: Tests/RouteGuidanceTests.cpp:16
- Test
- Check Rerouting: waiting off-road for initial entry does not recalculate; approaching a distant entry is valid progress; moving away from Bill's entry first starts confirmation.
Source check messages (including original failure wording)
-
waiting off-road for initial entry does not recalculate
-
approaching a distant entry is valid progress
-
moving away from Bill's entry first starts confirmation
-
entry deviation waits for sustained evidence
-
driving away from the new entry requests the existing server recalculation packet
-
pending recalculation suppresses stale cues and request floods
-
a missing route response retries after fifteen seconds
-
wrong-way travel on the road starts confirmation
-
wrong-way travel is not an instantaneous trigger
-
wrong-way travel recalculates despite zero lateral distance
-
clearing navigation cancels pending recalculation
-
wrong-turn confirmation uses elapsed seconds at any frame rate
-
a recalculation replaces other cues in that update
-
a sustained missed turn emits one request while awaiting a route
-
a brief excursion beyond fifty meters does not reroute
-
returning to the road clears deviation confirmation
-
one stalled frame cannot immediately trigger recalculation
-
normal forward travel with lane offset does not reroute
-
rounding tiny intersection links remains valid route progress
-
arrival still completes guidance before deviation checks
-
driving after arrival does not resurrect the completed route
-
a new destination after arrival can trigger recalculation
Check Recalculation Cooldown
Fixture: Route Guidance tests
Case symbol: CheckRecalculationCooldown
Source: Tests/RouteGuidanceTests.cpp:99
- Test
- Check Recalculation Cooldown: initial wrong-way departure still recalculates promptly; received replacement preserves a thirty-second cooldown at any frame rate; continuing away from the replacement does not cause a rapid recalculation loop.
Source check messages (including original failure wording)
-
initial wrong-way departure still recalculates promptly
-
received replacement preserves a thirty-second cooldown at any frame rate
-
continuing away from the replacement does not cause a rapid recalculation loop
-
a different destination starts without the previous cooldown
-
the recalculation cooldown does not suppress ordinary turn guidance on the new route
Check Slight Bend
Fixture: Route Guidance tests
Case symbol: CheckSlightBend
Source: Tests/RouteGuidanceTests.cpp:146
- Test
- Check Slight Bend: slight bend does not warn 800 m early; slight bend gives a 100 m heads-up for the outgoing road, including on the same street; the warning preserves direction and tells the server whether the street stays the same.
Source check messages (including original failure wording)
-
slight bend does not warn 800 m early
-
slight bend gives a 100 m heads-up for the outgoing road, including on the same street
-
the warning preserves direction and tells the server whether the street stays the same
-
slight bend heads-up is not repeated
-
a slight turn onto a different street retains the immediate instruction
-
a same-street slight bend has one advance instruction without a repeat at the curve
-
slight bend execution is not repeated
-
reaching the bend node does not repeat the instruction either
-
a late route still announces a slight bend when no advance instruction was issued
-
jumping over the execute window repeats only a turn onto a different street
Check Curve Cutoffs
Fixture: Route Guidance tests
Case symbol: CheckCurveCutoffs
Source: Tests/RouteGuidanceTests.cpp:194
- Test
- Check Curve Cutoffs: same-street curves below thirty degrees have no advance turn instruction; same-street curves below thirty degrees have no instruction at the curve; a sharper same-street turn retains its advance warning.
Source check messages (including original failure wording)
-
same-street curves below thirty degrees have no advance turn instruction
-
same-street curves below thirty degrees have no instruction at the curve
-
a sharper same-street turn retains its advance warning
-
a same-street turn over sixty degrees retains its immediate instruction
Check Initial Road Entry
Fixture: Route Guidance tests
Case symbol: CheckInitialRoadEntry
Source: Tests/RouteGuidanceTests.cpp:220
- Test
- Check Initial Road Entry: no continue while 435 m off the first road; approaching the road is not following it yet; crossing into the junction does not confirm the wrong heading.
Source check messages (including original failure wording)
-
no continue while 435 m off the first road
-
approaching the road is not following it yet
-
crossing into the junction does not confirm the wrong heading
-
joining the first Access Road announces continue on the current edge
-
initial continue sums the whole road to the next turn, not the 5 m entry link
-
initial continue is announced only once
-
initial continue does not suppress the later right-turn warning
-
a newly received route waits for travel direction
-
stationary vehicle does not confirm a direction
-
driving against the first edge does not say continue
-
turning to follow the first edge gives the pending continue
-
parallel motion 38 m off the road does not confirm entry
-
an imminent turn takes priority over entry reassurance
-
entry reassurance does not follow an imminent-turn warning
Check Carmel To18th
Fixture: Route Guidance tests
Case symbol: CheckCarmelTo18th
Source: Tests/RouteGuidanceTests.cpp:274
- Test
- Check Carmel To18th: Carmel to 18th gives a LEFT heads-up before the street-name change on the short lane link; left heads-up uses distance to the junction entrance; junction heads-up is announced once.
Source check messages (including original failure wording)
-
Carmel to 18th gives a LEFT heads-up before the street-name change on the short lane link
-
left heads-up uses distance to the junction entrance
-
junction heads-up is announced once
-
Carmel to 18th says turn LEFT at the junction, without a preliminary continue
-
no duplicate turn on the first internal node
-
no duplicate turn on the second internal node
-
no reassurance until the car leaves the intersection
-
after the single left maneuver, reassurance names 18th Street
-
junction grouping does not swallow a second turn 200 m away
-
the second real corner retains its own right-turn heads-up
-
the earlier second-corner warning is not repeated
Check Clayton Curves
Fixture: Route Guidance tests
Case symbol: CheckClaytonCurves
Source: Tests/RouteGuidanceTests.cpp:315
- Test
- Check Clayton Curves: Clayton's rounded bends give slight turns to continue on the same street in both directions; each of Clayton's two bends gets one heads-up without a second instruction at the curve; a shallow same-street drift below 30 degrees remains silent.
Source check messages (including original failure wording)
-
Clayton's rounded bends give slight turns to continue on the same street in both directions
-
each of Clayton's two bends gets one heads-up without a second instruction at the curve
-
a shallow same-street drift below 30 degrees remains silent
Check Voice Lead Time
Fixture: Route Guidance tests
Case symbol: CheckVoiceLeadTime
Source: Tests/RouteGuidanceTests.cpp:366
- Test
- Check Voice Lead Time: warning scales with speed to allow delivery, speech, and driver preparation; final turn cue includes delivery time rather than waiting until a fixed 15 m; no premature warning outside the calculated window.
Source check messages (including original failure wording)
-
warning scales with speed to allow delivery, speech, and driver preparation
-
final turn cue includes delivery time rather than waiting until a fixed 15 m
-
no premature warning outside the calculated window
-
Beaumont right turn is queued on entering the earlier warning window
-
after four seconds of delivery/queue and four seconds of speech there are about eight seconds to prepare
-
the earlier warning is still sent only once
-
execute cue is requested before delivery delay can carry the driver past the turn
-
the earlier final cue is not repeated
-
stationary vehicles retain bounded minimum cue distances
-
very high speeds retain bounded maximum cue distances
-
invalid speed does not corrupt the warning window
-
slow approach 300 m away is outside the warning window
-
accelerating expands the warning distance immediately
Entry-point checks
Fixture: Route Guidance tests
Case symbol: main
Source: Tests/RouteGuidanceTests.cpp:408
- Test
- Entry-point checks: already westbound on Access Road: no invented entry turn; entry point behind vehicle is consumed; west-to-north is RIGHT even with unchanged street name.
Source check messages (including original failure wording)
-
already westbound on Access Road: no invented entry turn
-
entry point behind vehicle is consumed
-
warn before west-to-north turn
-
west-to-north is RIGHT even with unchanged street name
-
turn names the outgoing edge, not the incoming edge
-
fractional plot distance converts to meters once
-
warning is not repeated each frame
-
announce RIGHT at the turn
-
execution instruction is not repeated
-
sampling after the corner advances to the northbound endpoint
-
reassure on the actual current road
-
continue covers remaining road length
-
following LEFT turn is still announced after advancing
-
north wraparound from west is right
-
north to west is left
-
359-to-1 is a small change
-
1-to-359 is straight
-
both 180-degree turns are U-turns
-
route received inside warning range still warns
-
late route arrival still announces the immediate turn
-
advance through multiple passed short edges in one update
-
collinear same-street nodes confirm initial travel without inventing a turn
-
straight street rename uses outgoing name
-
missed samples do not leave connector pointing behind a corner
-
passing the destination far away is not arrival
-
arrival requires proximity to final node
-
arrival is reported once
-
cleared route clears guidance state
-
new route resets warning suppression
-
Bill's missed access-road corner rejoins the northbound road
-
recovery resumes guidance without announcing the missed lane-link turns
-
guidance still announces the Financial District entrance after recovery
-
sampling across the short Castro Street curve keeps advancing
-
the later left onto 18th Street is announced after the missed corner
-
a nearby parallel return leg does not skip the hairpin
-
moving against the return leg does not reacquire it
-
being 60 m off the outgoing road does not count as passing the turn
-
Bill's final approach does not arrive while more road remains
-
Bill's stop near the final road point announces arrival despite the tiny final link
-
arrival at the road endpoint is announced once
-
the corrected Techform endpoint announces arrival where the old route continued another 89 m
-
stopping 40 m from the mapped road endpoint completes navigation
-
being close to the endpoint but 40 m off the approach does not arrive
-
a nearby endpoint across a long remaining loop does not arrive early
RoutePositionTests.h
Source: Tests/RoutePositionTests.h
Check Position Publication
Fixture: Route Guidance tests
Case symbol: CheckPositionPublication
Source: Tests/RoutePositionTests.h:85
- Test
- Check Position Publication: initial terrain position is valid; missing terrain intersection is reported; failed AGL at a cell boundary retains the entire previous map position.
Source check messages (including original failure wording)
-
initial terrain position is valid
-
missing terrain intersection is reported
-
failed AGL at a cell boundary retains the entire previous map position
-
position resumes after a valid terrain sample
-
resuming across a cell boundary moves meters instead of two kilometers
-
terrain quadrant intersects
-
map publication preserves terrain fractions in every quadrant
Check Jaeger Seams
Fixture: Route Guidance tests
Case symbol: CheckJaegerSeams
Source: Tests/RoutePositionTests.h:111
- Test
- Check Jaeger Seams: replay terrain sample intersects; Route 46 seam cannot skip the Route O junction or announce Continue Route O; southbound Route 46 stays current after the seam without false recalculation.
Source check messages (including original failure wording)
-
replay terrain sample intersects
-
Route 46 seam cannot skip the Route O junction or announce Continue Route O
-
southbound Route 46 stays current after the seam without false recalculation
-
logged Route 46 origin remains on route
-
the actual Route O junction retains its right-turn warning
-
the actual Route O turn retains its execution cue
-
Continue Route O occurs after the real turn
-
Route O seam cannot consume the next kilometer and lane link
-
normal Route O travel does not inherit a fictitious progress maximum
-
logged Route O origin remains on route
-
continuous Route O driving through all short links does not reroute
-
the later Carmel junction remains ahead