Merge pull request #1733 from krahulreddy/whitespaces-considered-as-single-space

Support whitespace characters(x09-x0d) as single space
This commit is contained in:
Sarah Hoffmann 2020-04-03 18:01:47 +02:00 committed by GitHub
commit 0d189ac5df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -164,3 +164,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 , 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 |