Skip to content

Commit

Permalink
Added WKT:Z prefix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth-coder13 committed Dec 11, 2020
1 parent df04b36 commit ff1f245
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/io/wkt/wkt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ void test_all()
{
using namespace boost::geometry;
typedef bg::model::point<T, 2, bg::cs::cartesian> P;
typedef bg::model::point<T, 3, bg::cs::cartesian> PZ;

test_wkt<P>("POINT(1 2)", 1);
test_wkt<bg::model::linestring<P> >("LINESTRING(1 1,2 2,3 3)", 3, 2 * sqrt(2.0));
Expand All @@ -200,6 +201,7 @@ void test_all()
"LINESTRING(1 0,2 0,3 0)");
test_relaxed_wkt<P>("POINT ( 1 2) ", "POINT(1 2)");
test_relaxed_wkt<P>("POINT M ( 1 2)", "POINT(1 2)");
test_relaxed_wkt<PZ>("POINT (1 2 3)", "Point Z(1 2 3)");
test_relaxed_wkt<bg::model::box<P> >("BOX(1 1,2 2)", "POLYGON((1 1,1 2,2 2,2 1,1 1))");

test_relaxed_wkt<bg::model::linestring<P> >("LINESTRING EMPTY", "LINESTRING()");
Expand Down

0 comments on commit ff1f245

Please sign in to comment.