Tests for airwsys in Nasal
This commit is contained in:
parent
7ac03debf4
commit
a6a29f5482
1 changed files with 9 additions and 0 deletions
|
@ -444,9 +444,18 @@ void FPNasalTests::testAirwaysAPI()
|
||||||
|
|
||||||
var v4 = createViaFromTo(cln, "L620", "REDFA");
|
var v4 = createViaFromTo(cln, "L620", "REDFA");
|
||||||
unitTest.assert_equal(v4.airway.level_code, Airway.LOW);
|
unitTest.assert_equal(v4.airway.level_code, Airway.LOW);
|
||||||
|
|
||||||
|
# test direct API (no Vias)
|
||||||
|
var wps = airwayStore.viaWaypoints(cln, "TULIP");
|
||||||
|
unitTest.assert_equal(size(wps), 3);
|
||||||
|
|
||||||
|
unitTest.assert_equal(wps[1].wp_ident, 'REDFA');
|
||||||
|
unitTest.assert_equal(wps[1].airway.ident, 'L620');
|
||||||
|
|
||||||
)");
|
)");
|
||||||
|
|
||||||
CPPUNIT_ASSERT(ok);
|
CPPUNIT_ASSERT(ok);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void FPNasalTests::testTotalDistanceAPI()
|
void FPNasalTests::testTotalDistanceAPI()
|
||||||
|
|
Loading…
Reference in a new issue