[geos-commits] r3738 - branches/3.3/tests/unit/capi
svn_geos at osgeo.org
svn_geos at osgeo.org
Thu Dec 6 09:44:58 PST 2012
Author: strk
Date: 2012-12-06 09:44:57 -0800 (Thu, 06 Dec 2012)
New Revision: 3738
Modified:
branches/3.3/tests/unit/capi/GEOSisValidDetailTest.cpp
Log:
Accept weird NAN values in testcase, sometimes seen on windows...
Modified: branches/3.3/tests/unit/capi/GEOSisValidDetailTest.cpp
===================================================================
--- branches/3.3/tests/unit/capi/GEOSisValidDetailTest.cpp 2012-12-06 08:23:10 UTC (rev 3737)
+++ branches/3.3/tests/unit/capi/GEOSisValidDetailTest.cpp 2012-12-06 17:44:57 UTC (rev 3738)
@@ -119,7 +119,13 @@
strToUpper(wkt);
ensure_equals(r, 0); // invalid
ensure_equals(std::string(reason_), std::string("Invalid Coordinate"));
- ensure_equals(wkt, "POINT (NAN -5)");
+ std::string exp1 = "POINT (NAN -5)";
+ std::string exp2 = "POINT (-1#IND -5)";
+ std::stringstream ss;
+ ss << "Expected '" << exp1 << "' or '" << exp2 << "', Obtained '" << wkt;
+ ensure(ss.str(),
+ wkt == "POINT (NAN -5)" ||
+ wkt == "POINT (-1#IND -5)");
}
// Self intersecting ring forming hole
More information about the geos-commits
mailing list