1
0
Fork 0

Extend wp.hidden unit test to ensure path is empty after a hidden waypoint

This commit is contained in:
legoboyvdlp R 2020-06-18 17:33:27 +01:00 committed by James Turner
parent bd666f952e
commit 585c821bde

View file

@ -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