X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/e36e485698acc94d8402504ea8cc143d28b7d8f2..b9b6b075cc3cc12daa5ba48742e010b3e5e9550e:/test/bdd/db/import/naming.feature diff --git a/test/bdd/db/import/naming.feature b/test/bdd/db/import/naming.feature index d2339376..bb29d2a3 100644 --- a/test/bdd/db/import/naming.feature +++ b/test/bdd/db/import/naming.feature @@ -8,8 +8,8 @@ Feature: Import and search of names | N1 | place | locality | german | country:de | When importing Then placex contains - | object | calculated_country_code | name+name | - | N1 | de | german | + | object | country_code | name+name | + | N1 | de | german | Scenario: Copying name tag to default language if it does not exist Given the places @@ -17,8 +17,8 @@ Feature: Import and search of names | N1 | place | locality | german | finnish | country:de | When importing Then placex contains - | object | calculated_country_code | name | name+name:fi | name+name:de | - | N1 | de | german | finnish | german | + | 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 @@ -26,8 +26,8 @@ Feature: Import and search of names | N1 | place | locality | german | finnish | country:de | When importing Then placex contains - | object | calculated_country_code | name | name+name:fi | name+name:de | - | N1 | de | german | finnish | german | + | 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 @@ -35,5 +35,26 @@ Feature: Import and search of names | N1 | place | locality | german | finnish | local | country:de | When importing Then placex contains - | object | calculated_country_code | name | name+name:fi | name+name:de | - | N1 | de | german | finnish | local | + | 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 | | + When importing + And sending search query "" + Then results contain + | osm | + | N1 | + + Examples: + | name | + | Berlin | + | 北京 | + | Вологда | + | Αθήνα | + | القاهرة | + | រាជធានីភ្នំពេញ | + | 東京都 | + | ပုဗ္ဗသီရိ |