Skip to content

Commit

Permalink
Add Street Synonyms test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
missinglink committed Jun 22, 2020
1 parent 3c0475e commit a52cc00
Showing 1 changed file with 175 additions and 0 deletions.
175 changes: 175 additions & 0 deletions test_cases/street_synonyms.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
{
"name": "street synonyms",
"priorityThresh": 1,
"normalizers": {
"street": [
"toLowerCase",
"abbreviateDirectionals"
]
},
"tests": [
{
"id": 1.1,
"status": "pass",
"user": "missinglink",
"notes": ["R == Rue"],
"in": {
"text": "R Gay Lussac, Paris"
},
"expected": {
"properties": [
{ "street": "Rue Gay-Lussac" }
]
}
},
{
"id": 1.2,
"status": "pass",
"user": "missinglink",
"notes": ["Rue == Rue"],
"in": {
"text": "Rue Gay Lussac, Paris"
},
"expected": {
"properties": [
{
"street": "Rue Gay-Lussac"
}
]
}
},
{
"id": 2.1,
"status": "pass",
"user": "missinglink",
"notes": ["Av. == Avenida"],
"in": {
"text": "Av. Juárez, Guadalajara, México"
},
"expected": {
"properties": [
{ "street": "Avenida Juárez" }
]
}
},
{
"id": 2.2,
"status": "pass",
"user": "missinglink",
"notes": ["Avenida == Avenida"],
"in": {
"text": "Avenida Juárez, Guadalajara, México"
},
"expected": {
"properties": [
{
"street": "Avenida Juárez"
}
]
}
},
{
"id": 2.3,
"status": "pass",
"user": "missinglink",
"notes": ["Avenue != Avenida"],
"in": {
"text": "Avenue Juárez, Guadalajara, México"
},
"unexpected": {
"properties": [
{
"street": "Avenida Juárez"
}
]
}
},
{
"id": 3.1,
"status": "pass",
"user": "missinglink",
"notes": ["St == Saint && St == Street"],
"in": {
"text": "St Patrick St, Donaldsonville, LA"
},
"expected": {
"properties": [
{ "street": "Saint Patrick Street" }
]
}
},
{
"id": 3.2,
"status": "pass",
"user": "missinglink",
"notes": ["Sainte != Saint && St == Street"],
"in": {
"text": "Sainte Patrick St, Donaldsonville, LA"
},
"unexpected": {
"properties": [
{ "street": "Saint Patrick Street" }
]
}
},
{
"id": 3.3,
"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": 4.1,
"status": "pass",
"user": "missinglink",
"in": {
"text": "W Mt Hope Av. MI USA"
},
"expected": {
"properties": [
{
"street": "West Mount Hope Avenue"
}
]
}
},
{
"id": 4.2,
"status": "pass",
"user": "missinglink",
"in": {
"text": "West Mount Hope Avenue MI USA"
},
"expected": {
"properties": [
{
"street": "West Mount Hope Avenue"
}
]
}
},
{
"id": 5,
"status": "pass",
"user": "missinglink",
"in": {
"text": "E 98th Ter, MO, USA"
},
"expected": {
"properties": [
{
"street": "East 98th Terrace"
}
]
}
}
]
}

0 comments on commit a52cc00

Please sign in to comment.