From: Sandro Santilli Date: Sun, 11 Aug 2013 09:07:11 +0000 (+0000) Subject: Add cunit-level test for #2412 X-Git-Tag: 2.2.0rc1~1412 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=180dfda3579e23cab51edb0f4c3aa556f87700bb;p=postgis Add cunit-level test for #2412 git-svn-id: http://svn.osgeo.org/postgis/trunk@11768 b70326c6-7e19-0410-871a-916f4a2858ee --- 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()