You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: maplibre-navigation-core/src/androidUnitTest/kotlin/org/maplibre/navigation/core/navigation/NavigationHelperTest.kt
+167Lines changed: 167 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,54 @@ class NavigationHelperTest : BaseTest() {
79
79
assertEquals(0, newIndices.stepIndex)
80
80
}
81
81
82
+
@Test
83
+
@Throws(Exception::class)
84
+
funincreaseIndex_skipsZeroDistanceLeg() {
85
+
val routeProgress = buildRouteProgressWithZeroDistanceLeg()
86
+
val previousIndices =NavigationIndices(0, 1)
87
+
88
+
val newIndices = increaseIndex(routeProgress, previousIndices)
Copy file name to clipboardExpand all lines: maplibre-navigation-core/src/androidUnitTest/kotlin/org/maplibre/navigation/core/navigation/engine/MapLibreNavigationEngineTest.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,7 @@ class MapLibreNavigationEngineTest : BaseTest() {
100
100
101
101
// Execute - simulate location update 1 second later
Copy file name to clipboardExpand all lines: maplibre-navigation-core/src/commonMain/kotlin/org/maplibre/navigation/core/navigation/NavigationHelper.kt
Copy file name to clipboardExpand all lines: maplibre-navigation-core/src/commonMain/kotlin/org/maplibre/navigation/core/navigation/engine/MapLibreNavigationEngine.kt
+10-6Lines changed: 10 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ open class MapLibreNavigationEngine(
53
53
collectLocationJob?.cancel() // Cancel previous started run
0 commit comments