[geos-commits] r3909 - branches/3.3/tests/unit/capi

svn_geos at osgeo.org svn_geos at osgeo.org
Wed Aug 21 08:48:21 PDT 2013


Author: strk
Date: 2013-08-21 08:48:21 -0700 (Wed, 21 Aug 2013)
New Revision: 3909

Modified:
   branches/3.3/tests/unit/capi/GEOSisValidDetailTest.cpp
Log:
Accept yet another NaN representation (#656)

Modified: branches/3.3/tests/unit/capi/GEOSisValidDetailTest.cpp
===================================================================
--- branches/3.3/tests/unit/capi/GEOSisValidDetailTest.cpp	2013-08-21 13:54:44 UTC (rev 3908)
+++ branches/3.3/tests/unit/capi/GEOSisValidDetailTest.cpp	2013-08-21 15:48:21 UTC (rev 3909)
@@ -121,11 +121,14 @@
       ensure_equals(std::string(reason_), std::string("Invalid Coordinate"));
       std::string exp1 = "POINT (NAN -5)";
       std::string exp2 = "POINT (-1#IND -5)";
+      // http://trac.osgeo.org/geos/ticket/656
+      std::string exp3 = "POINT (1.#QNAN -5)";
       std::stringstream ss;
-      ss << "Expected '" << exp1 << "' or '" << exp2 << "', Obtained '" << wkt;
+      ss << "Expected '" << exp1 << "' or '" << exp2 << "' or '" << exp3 << "', Obtained '" << wkt;
       ensure(ss.str(),
-        wkt == "POINT (NAN -5)" ||
-        wkt == "POINT (-1#IND -5)");
+        wkt == exp1 ||
+        wkt == exp2 ||
+        wkt == exp3);
     }
 
     // Self intersecting ring forming hole



More information about the geos-commits mailing list