Skip to content

Commit

Permalink
Merge pull request #522 from pelias/street_synonyms
Browse files Browse the repository at this point in the history
Add Street Synonyms test cases
  • Loading branch information
orangejulius authored Jun 25, 2020
2 parents 813a205 + f8f3baf commit d774d7e
Showing 1 changed file with 151 additions and 2 deletions.
153 changes: 151 additions & 2 deletions test_cases/search_abbreviations.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "search abbreviations",
"priorityThresh": 5,
"priorityThresh": 1,
"tests": [
{
"id": 1,
Expand All @@ -24,7 +24,7 @@
}
},
{
"id": 2,
"id": 1.1,
"status": "fail",
"user": "julian",
"issue": "https://github.com/pelias/pelias/issues/737",
Expand All @@ -44,6 +44,34 @@
]
}
},
{
"id": 1.3,
"status": "pass",
"user": "missinglink",
"notes": ["Sainte != Saint && St == Street"],
"in": {
"text": "Sainte Patrick St, Donaldsonville, LA"
},
"unexpected": {
"properties": [
{ "street": "Saint Patrick Street" }
]
}
},
{
"id": 1.4,
"status": "pass",
"user": "missinglink",
"notes": ["St == Saint && Straße != Street"],
"in": {
"text": "St Patrick Straße, Donaldsonville, LA"
},
"unexpected": {
"properties": [
{ "street": "Saint Patrick Street" }
]
}
},
{
"id": 3,
"status": "pass",
Expand Down Expand Up @@ -108,6 +136,127 @@
}
]
}
},
{
"id": 6.1,
"status": "fail",
"user": "missinglink",
"notes": ["R == Rue"],
"in": {
"text": "R Gay Lussac, Paris"
},
"expected": {
"properties": [
{ "street": "Rue Gay-Lussac" }
]
}
},
{
"id": 6.2,
"status": "pass",
"user": "missinglink",
"notes": ["Rue == Rue"],
"in": {
"text": "Rue Gay Lussac, Paris"
},
"expected": {
"properties": [
{
"street": "Rue Gay-Lussac"
}
]
}
},
{
"id": 7.1,
"status": "fail",
"user": "missinglink",
"notes": ["Av. == Avenida"],
"in": {
"text": "Av. Juárez, Guadalajara, México"
},
"expected": {
"properties": [
{ "street": "Avenida Juárez" }
]
}
},
{
"id": 7.2,
"status": "pass",
"user": "missinglink",
"notes": ["Avenida == Avenida"],
"in": {
"text": "Avenida Juárez, Guadalajara, México"
},
"expected": {
"properties": [
{
"street": "Avenida Juárez"
}
]
}
},
{
"id": 7.3,
"status": "pass",
"user": "missinglink",
"notes": ["Avenue != Avenida"],
"in": {
"text": "Avenue Juárez, Guadalajara, México"
},
"unexpected": {
"properties": [
{
"street": "Avenida Juárez"
}
]
}
},
{
"id": 8.1,
"status": "fail",
"user": "missinglink",
"in": {
"text": "W Mt Hope Av. MI USA"
},
"expected": {
"properties": [
{
"street": "West Mount Hope Avenue"
}
]
}
},
{
"id": 8.2,
"status": "pass",
"user": "missinglink",
"in": {
"text": "West Mount Hope Avenue MI USA"
},
"expected": {
"properties": [
{
"street": "West Mount Hope Avenue"
}
]
}
},
{
"id": 9,
"status": "fail",
"user": "missinglink",
"in": {
"text": "E 98th Ter, MO, USA"
},
"expected": {
"properties": [
{
"street": "East 98th Terrace"
}
]
}
}
]
}

0 comments on commit d774d7e

Please sign in to comment.