mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-10 21:04:07 +00:00
tests for composing decomposed suffixes
This commit is contained in:
@@ -52,6 +52,8 @@ def test_simple_variants(cfgfile):
|
|||||||
assert get_normalized_variants(proc, "Bauwegstr") == ['bauwegstr']
|
assert get_normalized_variants(proc, "Bauwegstr") == ['bauwegstr']
|
||||||
assert set(get_normalized_variants(proc, "holzweg")) \
|
assert set(get_normalized_variants(proc, "holzweg")) \
|
||||||
== {'holz weg', 'holzweg'}
|
== {'holz weg', 'holzweg'}
|
||||||
|
assert set(get_normalized_variants(proc, "Meier Weg")) \
|
||||||
|
== {'meier weg', 'meierweg'}
|
||||||
assert get_normalized_variants(proc, "hallo") == ['hallo']
|
assert get_normalized_variants(proc, "hallo") == ['hallo']
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user