[test][is_valid] add a few more test cases

This commit is contained in:
Menelaos Karavelas 2014-06-18 04:31:22 +03:00
parent 332eb42789
commit 4ab3bd3529

View File

@ -434,6 +434,12 @@ void test_linestrings()
AllowSpikes);
test::apply(from_wkt<G>("LINESTRING(0 0,1 0,1 1,5 5,4 4,4 0)"),
AllowSpikes);
test::apply(from_wkt<G>("LINESTRING(0 0,0 0,1 0,1 0,1 0,0 0,0 0,2 0)"),
AllowSpikes);
test::apply(from_wkt<G>("LINESTRING(0 0,1 0,0 0,2 0,0 0,3 0,0 0,4 0)"),
AllowSpikes);
test::apply(from_wkt<G>("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<G>("LINESTRING(0 0,10 0,10 10,5 0,4 0)"), true);