]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/bdd/db/query/postcodes.feature
remove PHP frontend support from BDD tests
[nominatim.git] / test / bdd / db / query / postcodes.feature
index 78a26a90f5dfd723a2d3511e23a03a0293023536..1ee73e986df0622a6cc8aa675b87596a6e0053de 100644 (file)
@@ -76,6 +76,7 @@ Feature: Querying fo postcode variants
             | AD675    |
 
 
             | AD675    |
 
 
+    @fail-legacy
     Scenario: Different postcodes with the same normalization can both be found
         Given the places
            | osm | class | type  | addr+postcode | addr+housenumber | geometry |
     Scenario: Different postcodes with the same normalization can both be found
         Given the places
            | osm | class | type  | addr+postcode | addr+housenumber | geometry |
@@ -95,3 +96,20 @@ Feature: Querying fo postcode variants
            | type     | display_name |
            | postcode | E4 7EA, United Kingdom |
 
            | type     | display_name |
            | postcode | E4 7EA, United Kingdom |
 
+
+    @fail-legacy
+    Scenario: Postcode areas are preferred over postcode points
+        Given the grid with origin DE
+            | 1 | 2 |
+            | 4 | 3 |
+        Given the places
+            | osm | class    | type        | postcode | geometry    |
+            | R23 | boundary | postal_code | 12345    | (1,2,3,4,1) |
+        When importing
+        Then location_postcode contains exactly
+          | country | postcode |
+          | de      | 12345    |
+        When sending search query "12345, de"
+        Then results contain
+          | osm |
+          | R23 |