From 4ab3bd35295b4ffb329992e3e720d38a54a95add Mon Sep 17 00:00:00 2001 From: Menelaos Karavelas Date: Wed, 18 Jun 2014 04:31:22 +0300 Subject: [PATCH] [test][is_valid] add a few more test cases --- test/algorithms/is_valid.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/algorithms/is_valid.cpp b/test/algorithms/is_valid.cpp index 255124a82..d929d3f4a 100644 --- a/test/algorithms/is_valid.cpp +++ b/test/algorithms/is_valid.cpp @@ -434,6 +434,12 @@ void test_linestrings() AllowSpikes); test::apply(from_wkt("LINESTRING(0 0,1 0,1 1,5 5,4 4,4 0)"), AllowSpikes); + test::apply(from_wkt("LINESTRING(0 0,0 0,1 0,1 0,1 0,0 0,0 0,2 0)"), + AllowSpikes); + test::apply(from_wkt("LINESTRING(0 0,1 0,0 0,2 0,0 0,3 0,0 0,4 0)"), + AllowSpikes); + test::apply(from_wkt("LINESTRING(0 0,1 0,0 0,2 0,0 0,3 0,0 0,4 0,0 0)"), + AllowSpikes); // other examples test::apply(from_wkt("LINESTRING(0 0,10 0,10 10,5 0,4 0)"), true);