From: Sarah Hoffmann Date: Fri, 3 Apr 2020 16:01:47 +0000 (+0200) Subject: Merge pull request #1733 from krahulreddy/whitespaces-considered-as-single-space X-Git-Tag: v3.5.0~55 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/0d189ac5df8341e80a118bc8e67e126d03cd5302?hp=-c Merge pull request #1733 from krahulreddy/whitespaces-considered-as-single-space Support whitespace characters(x09-x0d) as single space --- 0d189ac5df8341e80a118bc8e67e126d03cd5302 diff --combined test/bdd/api/search/queries.feature index e0f58466,7ac9813a..57ae2c20 --- a/test/bdd/api/search/queries.feature +++ b/test/bdd/api/search/queries.feature @@@ -26,6 -26,7 +26,6 @@@ Feature: Search querie | neighbourhood | Auenviertel | | suburb | Eilbek | | postcode | 22089 | - | city_district | Wandsbek | | city | Hamburg | | country | Deutschland | | country_code | de | @@@ -41,6 -42,7 +41,6 @@@ | neighbourhood | Auenviertel | | suburb | Eilbek | | postcode | 22089 | - | city_district | Wandsbek | | city | Hamburg | | country | Deutschland | | country_code | de | @@@ -164,3 -166,23 +164,23 @@@ | 0 | 6395 | | 1 | 6395 BIS | + Scenario Outline: Same Searches with white spaces + When sending json search query "" + 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 , N 47.15739° E 9.61264° | + + Scenario: Searched with white spaces + When sending json search query "22nd Street Southwest , Huron" + Then results contain + | class | type | + | highway | residential |