From 1fc11a33193bd0432b7a131c08a55fd7ac0a4f80 Mon Sep 17 00:00:00 2001 From: Barend Gehrels Date: Wed, 31 Jan 2018 09:52:47 +0100 Subject: [PATCH] [test] correct closure if necessary, and add define to be able to test faster --- test/algorithms/simplify.cpp | 7 +++++-- test/algorithms/test_simplify.hpp | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/test/algorithms/simplify.cpp b/test/algorithms/simplify.cpp index e920c5e31..2e50294bb 100644 --- a/test/algorithms/simplify.cpp +++ b/test/algorithms/simplify.cpp @@ -249,9 +249,12 @@ int test_main(int, char* []) // Integer compiles, but simplify-process fails (due to distances) //test_all >(); - test_all >(); test_all >(); +#if ! defined(BOOST_GEOMETRY_TEST_ONLY_ONE_TYPE) + + test_all >(); + test_3d >(); test_spherical > >(); @@ -262,7 +265,7 @@ int test_main(int, char* []) test_all >(); test_spherical > >(); #endif - +#endif return 0; diff --git a/test/algorithms/test_simplify.hpp b/test/algorithms/test_simplify.hpp index d80da5653..ba8172e79 100644 --- a/test/algorithms/test_simplify.hpp +++ b/test/algorithms/test_simplify.hpp @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -170,6 +171,7 @@ void test_geometry(std::string const& wkt, { Geometry geometry; bg::read_wkt(wkt, geometry); + bg::correct_closure(geometry); boost::variant v(geometry); BOOST_CONCEPT_ASSERT( (bg::concepts::SimplifyStrategy