From e24ea7c1bb92c863055c0509c3ccf086aced483d Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Thu, 3 Jan 2019 21:08:16 +0100 Subject: [PATCH] add tests for import of interpolations --- test/bdd/osm2pgsql/import/tags.feature | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/test/bdd/osm2pgsql/import/tags.feature b/test/bdd/osm2pgsql/import/tags.feature index 94506fec..766bc7f1 100644 --- a/test/bdd/osm2pgsql/import/tags.feature +++ b/test/bdd/osm2pgsql/import/tags.feature @@ -544,3 +544,20 @@ Feature: Tag evaluation Then place contains | object | class | type | address | | N290393920 | place | house| 'city' : 'Perpignan', 'country' : 'FR', 'housenumber' : '43\\', 'postcode' : '66000', 'street' : 'Rue Pierre Constant d`Ivry' | + + Scenario: odd interpolation + When loading osm data + """ + n4 Taddr:housenumber=3 x0 y0 + n5 Taddr:housenumber=15 x0 y0.00001 + w12 Taddr:interpolation=odd Nn4,n5 + w13 Taddr:interpolation=even Nn4,n5 + w14 Taddr:interpolation=-3 Nn4,n5 + """ + Then place contains + | object | class | type | address | + | N4 | place | house | 'housenumber' : '3' | + | N5 | place | house | 'housenumber' : '15' | + | W12 | place | houses | 'interpolation' : 'odd' | + | W13 | place | houses | 'interpolation' : 'even' | + | W14 | place | houses | 'interpolation' : '-3' | -- 2.45.1