[geos-commits] r3595 - trunk/tests/unit/capi
svn_geos at osgeo.org
svn_geos at osgeo.org
Thu Apr 5 10:14:41 EDT 2012
Author: strk
Date: 2012-04-05 07:14:41 -0700 (Thu, 05 Apr 2012)
New Revision: 3595
Modified:
trunk/tests/unit/capi/GEOSNodeTest.cpp
Log:
Ensure GEOSNode doesn't throw an exception with current tests
Modified: trunk/tests/unit/capi/GEOSNodeTest.cpp
===================================================================
--- trunk/tests/unit/capi/GEOSNodeTest.cpp 2012-04-05 13:43:29 UTC (rev 3594)
+++ trunk/tests/unit/capi/GEOSNodeTest.cpp 2012-04-05 14:14:41 UTC (rev 3595)
@@ -71,6 +71,7 @@
{
geom1_ = GEOSGeomFromWKT("LINESTRING(0 0, 10 10, 10 0, 0 10)");
geom2_ = GEOSNode(geom1_);
+ ensure(geom2_);
char* wkt_c = GEOSWKTWriter_write(w_, geom2_);
std::string out(wkt_c);
@@ -88,6 +89,7 @@
{
geom1_ = GEOSGeomFromWKT("MULTILINESTRING((0 0, 2 0, 4 0),(5 0, 3 0, 1 0))");
geom2_ = GEOSNode(geom1_);
+ ensure(geom2_);
char* wkt_c = GEOSWKTWriter_write(w_, geom2_);
std::string out(wkt_c);
@@ -105,6 +107,7 @@
{
geom1_ = GEOSGeomFromWKT("MULTILINESTRING((0 0, 2 0, 4 0),(0 0, 2 0, 4 0))");
geom2_ = GEOSNode(geom1_);
+ ensure(geom2_);
char* wkt_c = GEOSWKTWriter_write(w_, geom2_);
std::string out(wkt_c);
More information about the geos-commits
mailing list