mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-25 18:48:15 +00:00
more coverage tests for Geocode.php
This commit is contained in:
@@ -18,3 +18,10 @@ Feature: Searches with postcodes
|
|||||||
| country_code |
|
| country_code |
|
||||||
| li |
|
| 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 |
|
| class | type |
|
||||||
| man_made | mast |
|
| 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
|
# https://trac.openstreetmap.org/ticket/5094
|
||||||
Scenario: housenumbers are ordered by complete match first
|
Scenario: housenumbers are ordered by complete match first
|
||||||
When sending json search query "6395 geminis, montevideo" with address
|
When sending json search query "6395 geminis, montevideo" with address
|
||||||
|
|||||||
Reference in New Issue
Block a user