]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/bdd/api/search/queries.feature
Support whitespace characters(x09-x0d) as single space
[nominatim.git] / test / bdd / api / search / queries.feature
index 2969844c0720c4bc7834be28068baf90f9e91e06..7ac9813a519ba81a1e8d325c74f869f1d8b0e779 100644 (file)
@@ -166,3 +166,23 @@ Feature: Search queries
           | 0  | 6395 |
           | 1  | 6395 BIS |
 
+    Scenario Outline: Same Searches with white spaces 
+        When sending json search query "<data>"
+        Then exactly 1 result is returned
+        And results contain
+          | class   |
+          | building |
+
+    Examples:
+      | data |
+      | amerlugalpe, N 47.15739° E 9.61264° |
+      | amerlugalpe,   N 47.15739° E 9.61264° |
+      |        amerlugalpe     ,       N 47.15739° E 9.61264° |
+      | amerlugalpe, N 47.15739°              E 9.61264° |
+      | amerlugalpe\v, N 47.15739° E   9.61264° |
+
+    Scenario: Searched with white spaces
+        When sending json search query "22nd   Street Southwest\v,\fHuron"
+        Then results contain
+          | class   | type |
+          | highway | residential |
\ No newline at end of file