From 180dfda3579e23cab51edb0f4c3aa556f87700bb Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Sun, 11 Aug 2013 09:07:11 +0000 Subject: [PATCH] Add cunit-level test for #2412 git-svn-id: http://svn.osgeo.org/postgis/trunk@11768 b70326c6-7e19-0410-871a-916f4a2858ee --- liblwgeom/cunit/cu_ptarray.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/liblwgeom/cunit/cu_ptarray.c b/liblwgeom/cunit/cu_ptarray.c index 3bd744971..aec35740f 100644 --- a/liblwgeom/cunit/cu_ptarray.c +++ b/liblwgeom/cunit/cu_ptarray.c @@ -405,6 +405,15 @@ static void test_ptarray_desegmentize() // printf("%s\n", str); lwfree(str); + // See http://trac.osgeo.org/postgis/ticket/2412 + in = lwgeom_from_text("LINESTRING(0 0, 1 1)"); + out = lwgeom_desegmentize(in); + str = lwgeom_to_wkt(out, WKT_ISO, 8, NULL); +//printf("%s\n", str); + CU_ASSERT_STRING_EQUAL(str, "LINESTRING(0 0,1 1)"); + lwgeom_free(in); + lwgeom_free(out); + lwfree(str); } static void test_ptarray_contains_point() -- 2.50.1