Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a bunch of missing descriptions, models, and requirements #10

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions android/src/test/kotlin/TestModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ModelTest {

@Test
fun testWaypoint() {
val waypoint = Waypoint("name", listOf(1.0, 2.0))
val waypoint = Waypoint(listOf(1.0, 2.0), 42.0,"name")
assertEquals("name", waypoint.name)
assertEquals(listOf(1.0, 2.0), waypoint.location)
}
Expand All @@ -28,10 +28,10 @@ class ModelTest {

val route = response?.routes?.first() ?: fail("response must have at least one route")

assertEquals(1, route.legs?.size)
assertEquals(4, route.legs?.first()?.steps?.size)
assertEquals(1, route.legs.size)
assertEquals(4, route.legs.first().steps.size)

val step = route.legs?.first()?.steps?.first() ?: fail("route leg must have at least one step")
val step = route.legs.first().steps.first()

assertEquals("State Highway 65", step.name)
assertEquals("tezuoAezllgIfhAdStpAzV`hAxQlxA|X|i@vIdQpCnxClh@laCjd@dRdDr}@zOxgApR`pBf^jk@hKvmAnUfJ|AdDj@tCR", step.geometry)
Expand Down
Loading