Skip to content

Commit

Permalink
Add tests for multi lang support in autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
Joxit committed Oct 2, 2019
1 parent 1150a26 commit 6a01670
Showing 1 changed file with 235 additions and 0 deletions.
235 changes: 235 additions & 0 deletions test_cases/autocomplete_multi_lang.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,235 @@
{
"name": "Autocomplete Multi Lang",
"priorityThresh": 1,
"endpoint": "autocomplete",
"notes": "https://github.com/pelias/api/issues/1296",
"tests": [
{
"id": "1-1",
"status": "pass",
"user": "Joxit",
"in": {
"lang": "nl",
"text": "Pari"
},
"expected": {
"priorityThresh": 3,
"properties": [
{
"layer": "locality",
"country": "Frankrijk",
"name": "Parijs"
}
]
}
},
{
"id": "1-2",
"status": "fail",
"user": "Joxit",
"in": {
"lang": "nl",
"text": "Parij"
},
"expected": {
"properties": [
{
"layer": "locality",
"country": "Frankrijk",
"name": "Parijs"
}
]
}
},
{
"id": "1-3",
"status": "fail",
"user": "Joxit",
"in": {
"lang": "nl",
"text": "Parijs"
},
"expected": {
"properties": [
{
"layer": "locality",
"country": "Frankrijk",
"name": "Parijs"
}
]
}
},
{
"id": "2-1",
"status": "fail",
"user": "Joxit",
"issue": "https://github.com/pelias/pelias/issues/767",
"in": {
"lang": "de",
"text": "Kair"
},
"expected": {
"properties": [
{
"layer": "region",
"country": "Ägypten",
"name": "Kairo"
}
]
}
},
{
"id": "3-1",
"status": "fail",
"user": "Joxit",
"in": {
"lang": "fr",
"text": "Londres"
},
"expected": {
"properties": [
{
"layer": "locality",
"country": "Royaume-Uni",
"name": "Londres"
}
]
}
},
{
"id": "4-1",
"status": "fail",
"user": "Joxit",
"in": {
"lang": "zh",
"text": "孟菲斯及其"
},
"expected": {
"properties": [
{
"layer": "venue",
"country": "埃及",
"region": "吉薩省",
"name": "孟菲斯及其墓地金字塔"
}
]
}
},
{
"id": "5-1",
"status": "fail",
"user": "Joxit",
"in": {
"lang": "de",
"text": "Marokko"
},
"expected": {
"properties": [
{
"layer": "country",
"country": "Marokko",
"name": "Marokko"
}
]
}
},
{
"id": "6-1",
"status": "fail",
"user": "Joxit",
"issue": "https://github.com/pelias/pelias/issues/699",
"in": {
"lang": "en",
"text": "Museum of Kosovo"
},
"expected": {
"priorityThresh": 10,
"properties": [
{
"layer": "venue",
"country": "Kosovo",
"locality": "Pristina",
"name": "Museum of Kosovo"
}
]
}
},
{
"id": "6-2",
"status": "pass",
"user": "Joxit",
"issue": "https://github.com/pelias/pelias/issues/699",
"in": {
"lang": "en",
"text": "Muzeu i Kosovës"
},
"expected": {
"properties": [
{
"layer": "venue",
"country": "Kosovo",
"name": "Museum of Kosovo"
}
]
}
},
{
"id": "6-3",
"status": "fail",
"user": "Joxit",
"issue": "https://github.com/pelias/pelias/issues/699",
"in": {
"lang": "de",
"text": "Museum des Kosovo"
},
"expected": {
"properties": [
{
"layer": "venue",
"country": "Kosovo",
"locality": "Priština",
"name": "Museum des Kosovo"
}
]
}
},
{
"id": "7-1",
"status": "fail",
"user": "Joxit",
"issue": "https://github.com/pelias/pelias/issues/663",
"in": {
"lang": "ru",
"text": "8 марта"
},
"expected": {
"priorityThresh": 5,
"properties": [
{
"layer": "venue",
"name": "8 марта"
}
]
}
},
{
"id": "7-2",
"status": "fail",
"user": "Joxit",
"issue": "https://github.com/pelias/pelias/issues/663",
"in": {
"lang": "ru",
"text": "8 Марта, Белоруссия"
},
"expected": {
"properties": [
{
"layer": "venue",
"country": "Белоруссия",
"name": "8 марта"
}
]
}
}
]
}

0 comments on commit 6a01670

Please sign in to comment.