From: Sarah Hoffmann Date: Tue, 15 Jun 2021 06:59:03 +0000 (+0200) Subject: tests for composing decomposed suffixes X-Git-Tag: v4.0.0~58^2~12 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/0d80a9b89764e50c4c1a77c6d30febb4106b1825 tests for composing decomposed suffixes --- diff --git a/test/python/test_tokenizer_icu_name_processor.py b/test/python/test_tokenizer_icu_name_processor.py index 48a2fbd9..68c33010 100644 --- a/test/python/test_tokenizer_icu_name_processor.py +++ b/test/python/test_tokenizer_icu_name_processor.py @@ -52,6 +52,8 @@ def test_simple_variants(cfgfile): assert get_normalized_variants(proc, "Bauwegstr") == ['bauwegstr'] assert set(get_normalized_variants(proc, "holzweg")) \ == {'holz weg', 'holzweg'} + assert set(get_normalized_variants(proc, "Meier Weg")) \ + == {'meier weg', 'meierweg'} assert get_normalized_variants(proc, "hallo") == ['hallo']