Skip to content

Commit

Permalink
Merge branch 'complicated-surface-lanes' into mnalis-everything
Browse files Browse the repository at this point in the history
  • Loading branch information
mnalis committed Jan 25, 2024
2 parents 64fe161 + 773325d commit 89bcc01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ class SurfaceColorMappingKtTest {
assertEquals(Color.BLACK, createSurfaceAndNote(road.tags).getColor(road))
}

@Test fun `return black for surface:lanes:forward`() {
@Test fun `return black for complex forward surface lanes`() {
val road = way(tags = mapOf("surface:lanes:forward" to "asphalt"))
assertEquals(Color.BLACK, createSurfaceAndNote(road.tags).getColor(road))
}

@Test fun `return black for complex surface:lanes`() {
@Test fun `return black for complex surface lanes`() {
val road = way(tags = mapOf("surface:lanes" to "concrete|asphalt|asphalt"))
assertEquals(Color.BLACK, createSurfaceAndNote(road.tags).getColor(road))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class AddRoadSurfaceTest {
assertIsNotApplicable("highway" to "residential", "surface" to "asphalt")
}

@Test fun `not applicable to tagged surface:lanes`() {
@Test fun `not applicable to tagged complex surface lanes`() {
assertIsNotApplicable("highway" to "residential", "surface" to "paved", "surface:lanes" to "concrete|asphalt|asphalt")
assertIsNotApplicable("highway" to "track", "surface" to "unpaved", "surface:lanes:forward" to "compacted", "surface:lanes:backward" to "gravel" )
assertIsNotApplicable("highway" to "residential", "surface" to "paved", "surface:lanes:both_ways" to "asphalt|concrete")
Expand Down

0 comments on commit 89bcc01

Please sign in to comment.