]> granicus.if.org Git - postgis/commitdiff
Allow for 1.#INF to be threated as Inf (#1736)
authorSandro Santilli <strk@keybit.net>
Thu, 5 Apr 2012 09:11:51 +0000 (09:11 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 5 Apr 2012 09:11:51 +0000 (09:11 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9613 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/cunit/cu_in_wkt.c

index 4f509070c3d7cfdf8b9781d6a9986fe1752f9baa..b63bc69215a962f3bc5b1e296d50202732fb7538 100644 (file)
@@ -68,7 +68,7 @@ static void test_wkt_in_point(void)
 {
        s = "POINT(1e700 0)";
        r = cu_wkt_in(s, WKT_SFSQL);
-       CU_ASSERT_STRING_EQUAL(r,"POINT(inf 0)");
+       CU_TEST ( ! strcmp(r, "POINT(inf 0)") || ! strcmp(r, "POINT(1.#INF 0)") );
        lwfree(r);
 
        s = "POINT(0 0)";