add tests for examples in lua style documentation

And fix all the errors the tests have found.
This commit is contained in:
Sarah Hoffmann
2022-12-23 17:35:28 +01:00
parent 9321e425a4
commit 200eae3bc0
10 changed files with 257 additions and 20 deletions

View File

@@ -15,7 +15,7 @@ flex.set_prefilters{delete_keys = {'building', 'source', 'highway',
'addr:street:name', 'addr:street:type'},
delete_tags = {landuse = {'cemetry', 'no'},
boundary = {'place'}},
extratag_keys = {'wikipedia', 'wikipedia:*', 'wikidata', 'capital'}
extra_keys = {'wikipedia', 'wikipedia:*', 'wikidata', 'capital'}
}
flex.set_name_tags{main = {'name', 'name:*',
@@ -42,3 +42,5 @@ flex.set_address_tags{extra = {'addr:*', 'is_in:*'},
}
flex.set_unused_handling{extra_keys = {'place'}}
return flex