Browse Source

feat(tests): Add libpostal quirk acceptance test

pull/21/head
Julian Simioni 6 years ago
parent
commit
1031c8d8f3
No known key found for this signature in database
GPG Key ID: B9EEB0C6EE0910A1
  1. 35
      projects/portland-metro/test_cases/libpostal_quirks.json

35
projects/portland-metro/test_cases/libpostal_quirks.json

@ -0,0 +1,35 @@
{
"name": "/v1/search address",
"description": "addresses in Portland, OR",
"priorityThresh": 1,
"normalizers": {
"name": [
"toUpperCase",
"removeOrdinals",
"stripPunctuation",
"abbreviateDirectionals",
"abbreviateStreetSuffixes"
]
},
"tests": [
{
"id": 1,
"status": "pass",
"in": {
"text": "4004 SW Beaverton-Hillsdale, Portland"
},
"issue": "https://github.com/OpenTransitTools/trimet-mod-pelias/issues/20",
"description": "libpostal does not handle street directionals in some cases",
"expected": {
"properties": [
{
"name": "4004 SW Beaverton Hillsdale Hwy",
"locality": "Portland",
"region": "Oregon",
"region_a": "OR"
}
]
}
}
]
}
Loading…
Cancel
Save