From: Sarah Hoffmann Date: Thu, 30 Apr 2015 19:39:41 +0000 (+0200) Subject: add tests for new polygon_threshold feature X-Git-Tag: v.2.5.0~61 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/cc4070618851aa4194f6263cdf3de63fcdf8074d add tests for new polygon_threshold feature --- diff --git a/tests/features/api/search_params.feature b/tests/features/api/search_params.feature index 23a6bf59..1062cd02 100644 --- a/tests/features/api/search_params.feature +++ b/tests/features/api/search_params.feature @@ -170,3 +170,35 @@ Feature: Search queries Then results contain | ID | display_name | 0 | Everest.* + + Scenario Outline: Search with polygon threshold (json) + Given the request parameters + | polygon_geojson | polygon_threshold + | 1 | + When sending json search query "switzerland" + Then at least 1 result is returned + And result 0 has attributes geojson + + Examples: + | th + | -1 + | 0.0 + | 0.5 + | 999 + | nan + + Scenario Outline: Search with polygon threshold (xml) + Given the request parameters + | polygon_geojson | polygon_threshold + | 1 | + When sending xml search query "switzerland" + Then at least 1 result is returned + And result 0 has attributes geojson + + Examples: + | th + | -1 + | 0.0 + | 0.5 + | 999 + | nan