]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/bdd/api/search/postcode.feature
small typos and wording in the API docs
[nominatim.git] / test / bdd / api / search / postcode.feature
index f92aff3cba2151090530e6495b62a635626ead1a..63c8646946cb2d1170879b17c6ff0a9268340650 100644 (file)
@@ -18,3 +18,18 @@ Feature: Searches with postcodes
             | country_code |
             | li           |
 
+    Scenario: Postcode search with country code restriction
+        When sending json search query "9490" with address
+            | countrycodes |
+            | li |
+        Then result addresses contain
+            | country_code |
+            | li           |
+
+    Scenario: Postcode search with structured query
+        When sending json search query "" with address
+            | postalcode | country |
+            | 9490       | li |
+        Then result addresses contain
+            | country_code | postcode |
+            | li           | 9490     |