]> git.openstreetmap.org Git - nominatim.git/commitdiff
tests for composing decomposed suffixes
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 15 Jun 2021 06:59:03 +0000 (08:59 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 4 Jul 2021 08:28:20 +0000 (10:28 +0200)
test/python/test_tokenizer_icu_name_processor.py

index 48a2fbd91847bafdff5a7e246dd899776ddad7b1..68c330106b6a08d38bef80292b0799532bb6353d 100644 (file)
@@ -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']