From a6a29f54825d3bb0955f5597025fc196b27b28f8 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sat, 15 Jan 2022 14:07:57 +0000 Subject: [PATCH] Tests for airwsys in Nasal --- test_suite/unit_tests/Navaids/test_fpNasal.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test_suite/unit_tests/Navaids/test_fpNasal.cxx b/test_suite/unit_tests/Navaids/test_fpNasal.cxx index b4dbf9695..4caa5ba5a 100644 --- a/test_suite/unit_tests/Navaids/test_fpNasal.cxx +++ b/test_suite/unit_tests/Navaids/test_fpNasal.cxx @@ -444,9 +444,18 @@ void FPNasalTests::testAirwaysAPI() var v4 = createViaFromTo(cln, "L620", "REDFA"); 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); + } void FPNasalTests::testTotalDistanceAPI()