From 0e11ca9b76aa5f8f1429acdb7fc0f0d1631537cb Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Thu, 10 Feb 2022 11:23:51 +0100 Subject: [PATCH] add test that interpolations are found by odd/even --- test/bdd/db/query/housenumbers.feature | 33 ++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/test/bdd/db/query/housenumbers.feature b/test/bdd/db/query/housenumbers.feature index bbb43f17..4d42da9f 100644 --- a/test/bdd/db/query/housenumbers.feature +++ b/test/bdd/db/query/housenumbers.feature @@ -67,3 +67,36 @@ Feature: Searching of house numbers Then results contain | osm | | N1 | + + + Scenario: Interpolations are found according to their type + Given the grid + | 10 | | 11 | + | 100 | | 101 | + | 20 | | 21 | + And the places + | osm | class | type | name | geometry | + | W100 | highway | residential | Ringstr | 100, 101 | + And the places + | osm | class | type | addr+interpolation | geometry | + | W10 | place | houses | even | 10, 11 | + | W20 | place | houses | odd | 20, 21 | + And the places + | osm | class | type | housenr | geometry | + | N10 | place | house | 10 | 10 | + | N11 | place | house | 20 | 11 | + | N20 | place | house | 11 | 20 | + | N21 | place | house | 21 | 21 | + And the ways + | id | nodes | + | 10 | 10, 11 | + | 20 | 20, 21 | + When importing + When sending search query "Ringstr 12" + Then results contain + | osm | + | W10 | + When sending search query "Ringstr 13" + Then results contain + | osm | + | W20 | -- 2.39.5