]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/bdd/api/search/structured.feature
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / test / bdd / api / search / structured.feature
index f45a1a6dcaac19bcd04764d08211ec88b0d06cf3..e94cd4cc2b26b15bf79e02e2d5b12fb2d490b8a7 100644 (file)
@@ -18,7 +18,7 @@ Feature: Structured search queries
           | 22547 |
         Then results contain
           | type |
-          | postcode |
+          | ^post(al_)?code |
         And result addresses contain
           | postcode |
           | 22547 |
@@ -31,6 +31,22 @@ Feature: Structured search queries
           | attr        | value |
           | querystring | Old Palace Road, GU2 7UP, United Kingdom |
 
+    Scenario: Street with housenumber, city and postcode
+        When sending xml search query "" with address
+          | street             | city  | postalcode |
+          | 19 Am schrägen Weg | Vaduz | 9490       |
+        Then result addresses contain
+          | house_number | road |
+          | 19           | Am Schrägen Weg |
+
+    Scenario: Street with housenumber, city and bad postcode
+        When sending xml search query "" with address
+          | street             | city  | postalcode |
+          | 19 Am schrägen Weg | Vaduz | 9491       |
+        Then result addresses contain
+          | house_number | road |
+          | 19           | Am Schrägen Weg |
+
     Scenario: Amenity, city
         When sending json search query "" with address
           | city  | amenity |