Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Bombbird2001 committed Apr 26, 2024
1 parent 0c5fbd4 commit 4e81c94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions core/src/test/kotlin/ApproachToolsTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
6 changes: 3 additions & 3 deletions core/src/test/kotlin/JsonTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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 {
Expand All @@ -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()
Expand Down

0 comments on commit 4e81c94

Please sign in to comment.