From 1416aa02b8884ba1c2855b19035978ff5e7b28e4 Mon Sep 17 00:00:00 2001 From: Hanna Torrence Date: Tue, 14 Jul 2026 10:36:46 -0500 Subject: [PATCH] include "Ln" for "Lane" --- pyap/source_CA/data.py | 2 +- tests/test_parser_ca.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pyap/source_CA/data.py b/pyap/source_CA/data.py index e662c04..e5373f2 100644 --- a/pyap/source_CA/data.py +++ b/pyap/source_CA/data.py @@ -232,7 +232,7 @@ [Kk][Ee][Yy]{div}| [Kk][Nn][Oo][Ll][Ll]{div}| [Ll][Aa][Nn][Dd][Ii][Nn][Gg]{div}|[Ll][Aa][Nn][Dd][Nn][Gg]{div}| - [Ll][Aa][Nn][Ee]{div}| + [Ll][Aa][Nn][Ee]{div}|[Ll][Nn]{div}| [Ll][Ii][Mm][Ii][Tt][Ss]{div}|[Ll][Mm][Tt][Ss]{div}| [Ll][Ii][Nn][Ee]{div}| [Ll][Ii][Nn][Kk]{div}| diff --git a/tests/test_parser_ca.py b/tests/test_parser_ca.py index 839e1e1..9ee150f 100644 --- a/tests/test_parser_ca.py +++ b/tests/test_parser_ca.py @@ -199,6 +199,7 @@ def test_post_direction(input, expected): ("Sq.", True), ("Street route 5 ", True), ("blvd", True), + ("Ln ", True), # negative assertions # TODO ], @@ -423,6 +424,7 @@ def test_po_box_negative(input, expected): True, ), ("3264 Mainway Burlington L7M 1A7 Ontario, Canada", True), + ("8182 Meadow Ln, Whistler, BC V8E 0G3, Canada", True), ], ) def test_full_address_positive(input, expected):