mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-26 06:22:13 +03:00
more coverage tests for Geocode.php
This commit is contained in:
parent
2deac34648
commit
eacaf3489e
@ -18,3 +18,10 @@ 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 |
|
||||
|
@ -96,6 +96,24 @@ Feature: Search queries
|
||||
| class | type |
|
||||
| man_made | mast |
|
||||
|
||||
Scenario: Arbitrary key/value search near a road
|
||||
When sending json search query "[leisure=table_soccer_table] immenbusch"
|
||||
Then results contain
|
||||
| class | type |
|
||||
| leisure | table_soccer_table |
|
||||
|
||||
Scenario: Ignore other country codes in structured search with country
|
||||
When sending json search query ""
|
||||
| city | country |
|
||||
| li | de |
|
||||
Then exactly 0 results are returned
|
||||
|
||||
Scenario: Ignore country searches when query is restricted to countries
|
||||
When sending json search query "de"
|
||||
| countrycodes |
|
||||
| li |
|
||||
Then exactly 0 results are returned
|
||||
|
||||
# https://trac.openstreetmap.org/ticket/5094
|
||||
Scenario: housenumbers are ordered by complete match first
|
||||
When sending json search query "6395 geminis, montevideo" with address
|
||||
|
Loading…
Reference in New Issue
Block a user