]> granicus.if.org Git - postgis/commitdiff
Change cunit test to respect fact that points are serialized with boxes on them
authorPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 6 Nov 2015 15:02:49 +0000 (15:02 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 6 Nov 2015 15:02:49 +0000 (15:02 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@14360 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/cunit/cu_geodetic.c

index 51d383dacd79576bb367b9bae9af78749e7bde87..3cd4a304425e73fa89140db99c35d1cefed5ddb1 100644 (file)
@@ -905,7 +905,7 @@ static void test_gserialized_from_lwgeom(void)
        type = gserialized_get_type(g);
        CU_ASSERT_EQUAL( type, POINTTYPE );
        inspect = (double*)g;
-       CU_ASSERT_EQUAL(inspect[3], 0.2);
+       CU_ASSERT_EQUAL(inspect[6], 0.2);
        lwgeom_free(geom);
        lwfree(g);