Browse Source

Merge pull request #702 from pelias/update-ciao-tests-for-libpostal

Update ciao test parsed_text expectations for libpostal
pull/700/merge
Julian Simioni 8 years ago committed by GitHub
parent
commit
ad21527ecd
  1. 5
      test/ciao/search/address_parsing.coffee

5
test/ciao/search/address_parsing.coffee

@ -33,12 +33,9 @@ json.geocoding.query['text'].should.eql '30 w 26th st, ny'
json.geocoding.query['size'].should.eql 10 json.geocoding.query['size'].should.eql 10
#? address parsing #? address parsing
json.geocoding.query.parsed_text['name'].should.eql '30 w 26th st'
json.geocoding.query.parsed_text['number'].should.eql '30' json.geocoding.query.parsed_text['number'].should.eql '30'
json.geocoding.query.parsed_text['street'].should.eql 'w 26th st' json.geocoding.query.parsed_text['street'].should.eql 'w 26th st'
json.geocoding.query.parsed_text['state'].should.eql 'NY' json.geocoding.query.parsed_text['state'].should.eql 'ny'
json.geocoding.query.parsed_text['regions'].should.eql []
json.geocoding.query.parsed_text['admin_parts'].should.eql "ny"
json.features[0].properties.confidence.should.eql 1 json.features[0].properties.confidence.should.eql 1
json.features[0].properties.match_type.should.eql "exact" json.features[0].properties.match_type.should.eql "exact"

Loading…
Cancel
Save