From 3aaa628b2565d310c5ba64eb680a11ab3c85f23c Mon Sep 17 00:00:00 2001 From: Al Date: Tue, 21 Mar 2017 14:24:13 -0400 Subject: [PATCH] =?UTF-8?q?[test]=20add=20LaSalle,=20Montr=C3=A9al=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/test_parser.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/test/test_parser.c b/test/test_parser.c index 0bbb14e7..66ccf6d2 100644 --- a/test/test_parser.c +++ b/test/test_parser.c @@ -636,6 +636,27 @@ TEST test_ca_parses(void) { (labeled_component_t){"postcode", "h3z 2y7"} )); + CHECK_CALL(test_parse_result_equals( + // From: https://github.com/pelias/pelias/issues/275 + "LaSalle Montréal QC", + options, + 3, + (labeled_component_t){"suburb", "lasalle"}, + (labeled_component_t){"city", "montréal"}, + (labeled_component_t){"state", "qc"} + )); + + CHECK_CALL(test_parse_result_equals( + // From: https://github.com/pelias/pelias/issues/275 + "LaSalle Montreal QC", + options, + 3, + (labeled_component_t){"suburb", "lasalle"}, + (labeled_component_t){"city", "montreal"}, + (labeled_component_t){"state", "qc"} + )); + + PASS(); }