mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-24 05:22:15 +03:00
b453b0ea95
Mutations are regular-expression-based replacements that are applied after variants have been computed. They are meant to be used for variations on character level. Add spelling variations for German umlauts.
106 lines
3.6 KiB
Gherkin
106 lines
3.6 KiB
Gherkin
@DB
|
||
Feature: Import and search of names
|
||
Tests all naming related import issues
|
||
|
||
Scenario: No copying name tag if only one name
|
||
Given the places
|
||
| osm | class | type | name | geometry |
|
||
| N1 | place | locality | german | country:de |
|
||
When importing
|
||
Then placex contains
|
||
| object | country_code | name+name |
|
||
| N1 | de | german |
|
||
|
||
Scenario: Copying name tag to default language if it does not exist
|
||
Given the places
|
||
| osm | class | type | name | name+name:fi | geometry |
|
||
| N1 | place | locality | german | finnish | country:de |
|
||
When importing
|
||
Then placex contains
|
||
| object | country_code | name | name+name:fi | name+name:de |
|
||
| N1 | de | german | finnish | german |
|
||
|
||
Scenario: Copying default language name tag to name if it does not exist
|
||
Given the places
|
||
| osm | class | type | name+name:de | name+name:fi | geometry |
|
||
| N1 | place | locality | german | finnish | country:de |
|
||
When importing
|
||
Then placex contains
|
||
| object | country_code | name | name+name:fi | name+name:de |
|
||
| N1 | de | german | finnish | german |
|
||
|
||
Scenario: Do not overwrite default language with name tag
|
||
Given the places
|
||
| osm | class | type | name | name+name:fi | name+name:de | geometry |
|
||
| N1 | place | locality | german | finnish | local | country:de |
|
||
When importing
|
||
Then placex contains
|
||
| object | country_code | name | name+name:fi | name+name:de |
|
||
| N1 | de | german | finnish | local |
|
||
|
||
Scenario Outline: Names in any script can be found
|
||
Given the places
|
||
| osm | class | type | name |
|
||
| N1 | place | hamlet | <name> |
|
||
When importing
|
||
And sending search query "<name>"
|
||
Then results contain
|
||
| osm |
|
||
| N1 |
|
||
|
||
Examples:
|
||
| name |
|
||
| Berlin |
|
||
| 北京 |
|
||
| Вологда |
|
||
| Αθήνα |
|
||
| القاهرة |
|
||
| រាជធានីភ្នំពេញ |
|
||
| 東京都 |
|
||
| ပုဗ္ဗသီရိ |
|
||
|
||
|
||
Scenario: German umlauts can be found when expanded
|
||
Given the places
|
||
| osm | class | type | name+name:de |
|
||
| N1 | place | city | Münster |
|
||
| N2 | place | city | Köln |
|
||
| N3 | place | city | Gräfenroda |
|
||
When importing
|
||
When sending search query "münster"
|
||
Then results contain
|
||
| osm |
|
||
| N1 |
|
||
When sending search query "muenster"
|
||
Then results contain
|
||
| osm |
|
||
| N1 |
|
||
When sending search query "munster"
|
||
Then results contain
|
||
| osm |
|
||
| N1 |
|
||
When sending search query "Köln"
|
||
Then results contain
|
||
| osm |
|
||
| N2 |
|
||
When sending search query "Koeln"
|
||
Then results contain
|
||
| osm |
|
||
| N2 |
|
||
When sending search query "Koln"
|
||
Then results contain
|
||
| osm |
|
||
| N2 |
|
||
When sending search query "gräfenroda"
|
||
Then results contain
|
||
| osm |
|
||
| N3 |
|
||
When sending search query "graefenroda"
|
||
Then results contain
|
||
| osm |
|
||
| N3 |
|
||
When sending search query "grafenroda"
|
||
Then results contain
|
||
| osm |
|
||
| N3 |
|