From 238ca9dee153a2ec8f674d30c1d5a8746cc254c8 Mon Sep 17 00:00:00 2001 From: Tobias Zwick Date: Mon, 23 Aug 2021 01:11:23 +0200 Subject: [PATCH] @matkoniecz forgot to remove some now obsolete tests, tsk tsk :-P --- .../quests/roof_shape/AddRoofShapeTest.kt | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/app/src/test/java/de/westnordost/streetcomplete/quests/roof_shape/AddRoofShapeTest.kt b/app/src/test/java/de/westnordost/streetcomplete/quests/roof_shape/AddRoofShapeTest.kt index 1089d48fb2..0840cea51a 100644 --- a/app/src/test/java/de/westnordost/streetcomplete/quests/roof_shape/AddRoofShapeTest.kt +++ b/app/src/test/java/de/westnordost/streetcomplete/quests/roof_shape/AddRoofShapeTest.kt @@ -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")) @@ -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")