Extend wp.hidden unit test to ensure path is empty after a hidden waypoint
This commit is contained in:
parent
bd666f952e
commit
585c821bde
1 changed files with 6 additions and 0 deletions
|
@ -392,8 +392,14 @@ void RouteManagerTests::testHiddenWaypoints()
|
|||
|
||||
// ensure no visual path is generated for hidden waypoints
|
||||
RoutePath path(fp1);
|
||||
|
||||
// no path should be generated between 2 and 3
|
||||
CPPUNIT_ASSERT(path.pathForIndex(3).empty());
|
||||
|
||||
// no path should be generated between 3 and 4
|
||||
CPPUNIT_ASSERT(path.pathForIndex(4).empty());
|
||||
CPPUNIT_ASSERT(!path.pathForIndex(5).empty());
|
||||
|
||||
|
||||
bool ok = FGTestApi::executeNasal(R"(
|
||||
var fp = flightplan(); # retrieve the global flightplan
|
||||
|
|
Loading…
Add table
Reference in a new issue