From: Sarah Hoffmann Date: Fri, 25 Aug 2023 06:45:47 +0000 (+0200) Subject: add test case for bad update X-Git-Tag: v4.3.0~14^2~1 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/26dfb868e943bba3fde8c271f02faf1150c33644?hp=d5b6042118504e6419a557c99685381914161732 add test case for bad update --- diff --git a/test/bdd/osm2pgsql/update/tags.feature b/test/bdd/osm2pgsql/update/tags.feature index 3d083040..e2fd665a 100644 --- a/test/bdd/osm2pgsql/update/tags.feature +++ b/test/bdd/osm2pgsql/update/tags.feature @@ -488,3 +488,26 @@ Feature: Tag evaluation Then placex contains exactly | object | type | admin_level | | R10:boundary | informal | 4 | + + + Scenario: Main tag and geometry is changed + When loading osm data + """ + n1 x40 y40 + n2 x40.0001 y40 + n3 x40.0001 y40.0001 + n4 x40 y40.0001 + w5 Tbuilding=house,name=Foo Nn1,n2,n3,n4,n1 + """ + Then place contains exactly + | object | type | + | W5:building | house | + + When updating osm data + """ + n1 x39.999 y40 + w5 Tbuilding=terrace,name=Bar Nn1,n2,n3,n4,n1 + """ + Then place contains exactly + | object | type | + | W5:building | terrace |