From 4e81c94cd70e0d2ea427fcc3d58e2f970510e3ff Mon Sep 17 00:00:00 2001 From: Shang Yi Ku Date: Fri, 26 Apr 2024 18:09:40 +0800 Subject: [PATCH] Fix tests --- core/src/test/kotlin/ApproachToolsTest.kt | 6 +++--- core/src/test/kotlin/JsonTest.kt | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/src/test/kotlin/ApproachToolsTest.kt b/core/src/test/kotlin/ApproachToolsTest.kt index 4eed1ee8..2d960b0e 100644 --- a/core/src/test/kotlin/ApproachToolsTest.kt +++ b/core/src/test/kotlin/ApproachToolsTest.kt @@ -39,21 +39,21 @@ object ApproachToolsTest: FunSpec() { "TESTAPP1", 0, 0, 10f, 10f, 200, 500, false, UsabilityFilter.DAY_AND_NIGHT ).apply { - addLocalizer(180, 25) + addLocalizer(180f, 25) addGlideslope(3f, -1.9f, 4000) } locGsApp2 = Approach( "TESTAPP2", 0, 0, 10f, 10f, 200, 500, false, UsabilityFilter.DAY_AND_NIGHT ).apply { - addLocalizer(270, 25) + addLocalizer(270f, 25) addGlideslope(4.5f, -1.2f, 6000) } locStepApp = Approach( "TESTAPP3", 0, 0, 10f, 10f, 200, 500, false, UsabilityFilter.DAY_AND_NIGHT ).apply { - addLocalizer(270, 25) + addLocalizer(270f, 25) addStepDown(arrayOf(StepDown.Step(3f, 900), StepDown.Step(5f, 1500), StepDown.Step(10f, 3000))) addLineUpDist(0.4f) } diff --git a/core/src/test/kotlin/JsonTest.kt b/core/src/test/kotlin/JsonTest.kt index e13c81eb..fbba060a 100644 --- a/core/src/test/kotlin/JsonTest.kt +++ b/core/src/test/kotlin/JsonTest.kt @@ -94,7 +94,7 @@ object JsonTest: FunSpec() { } app1 = Approach("ILS05L", 0, 0, 9f, 11f, 220, 800, false, UsabilityFilter.DAY_AND_NIGHT).apply { - addLocalizer(45, 20) + addLocalizer(45f, 20) addGlideslope(3f, -2f, 4000) routeLegs.setToRoute(Route().apply { add(Route.WaypointLeg(3, null, 2000, 230, legActive = true, altRestrActive = true, spdRestrActive = true, phase = Route.Leg.APP)) @@ -114,7 +114,7 @@ object JsonTest: FunSpec() { transitionRouteZones["TESTT"] = getZonesForArrivalRoute(transitions["TESTT"]) }.shouldNotBeNull() app2 = Approach("LDA05R", 0, 1, 7f, 11f, 625, 2700, false, UsabilityFilter.DAY_AND_NIGHT).apply { - addLocalizer(30, 20) + addLocalizer(30f, 20) addStepDown(arrayOf(StepDown.Step(4f, 1200), StepDown.Step(8f, 2000), StepDown.Step(15f, 4000))) addLineUpDist(1f) routeLegs.setToRoute(Route().apply { @@ -130,7 +130,7 @@ object JsonTest: FunSpec() { missedRouteZones.addAll(getZonesForDepartureRoute(missedLegs)) }.shouldNotBeNull() app3 = Approach("CIRCLE05L", 0, 0, -1f, 1f, 1220, 4000, false, UsabilityFilter.DAY_AND_NIGHT).apply { - addLocalizer(225, 20) + addLocalizer(225f, 20) addGlideslope(3f, -2f, 4000) addCircling(1000, 1400, CommandTarget.TURN_RIGHT) }.shouldNotBeNull()