Skip to content

Commit

Permalink
@matkoniecz forgot to remove some now obsolete tests, tsk tsk :-P
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed Aug 22, 2021
1 parent 85a7621 commit 238ca9d
Showing 1 changed file with 0 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,6 @@ class AddRoofShapeTest {
))
}

@Test fun `not applicable to buildings with many levels and few or no roof levels`() {
assertEquals(false, questType.isApplicableTo(
way(tags = mapOf("building:levels" to "6.5", "roof:levels" to "1", "building" to "apartments"))
))
assertEquals(false, questType.isApplicableTo(
way(tags = mapOf("building:levels" to "8", "roof:levels" to "2", "building" to "apartments"))
))
assertEquals(false, questType.isApplicableTo(
way(tags = mapOf("building:levels" to "5", "building" to "apartments"))
))
assertEquals(false, questType.isApplicableTo(
way(tags = mapOf("building:levels" to "4", "roof:levels" to "0", "building" to "apartments"))
))
}

@Test fun `applicable to buildings with many levels and enough roof levels to be visible from below`() {
assertEquals(true, questType.isApplicableTo(
way(tags = mapOf("building:levels" to "6", "roof:levels" to "1.5", "building" to "apartments"))
Expand Down Expand Up @@ -106,14 +91,6 @@ class AddRoofShapeTest {
assertEquals(element, quests.single())
}

@Test fun `do not create quest for buildings with too many levels`() {
val element = way(tags = mapOf("building:levels" to "6", "roof:levels" to "1", "building" to "apartments"))

val quests = questType.getApplicableElements(TestMapDataWithGeometry(listOf(element)))

assertEquals(true, quests.isEmpty())
}

@Test fun `create quest for 0 or null-level roofs only in countries with no flat roofs`() {
val noFlatRoofs = CountryInfo()
val field = noFlatRoofs.javaClass.getDeclaredField("roofsAreUsuallyFlat")
Expand Down

0 comments on commit 238ca9d

Please sign in to comment.