[geos-commits] r3267 - trunk/tests/unit/capi
svn_geos at osgeo.org
svn_geos at osgeo.org
Tue Mar 8 04:04:01 EST 2011
Author: strk
Date: 2011-03-08 01:04:01 -0800 (Tue, 08 Mar 2011)
New Revision: 3267
Modified:
trunk/tests/unit/capi/GEOSRelateBoundaryNodeRuleTest.cpp
Log:
Add test for invalid boundary node rule value
Modified: trunk/tests/unit/capi/GEOSRelateBoundaryNodeRuleTest.cpp
===================================================================
--- trunk/tests/unit/capi/GEOSRelateBoundaryNodeRuleTest.cpp 2011-03-04 17:05:44 UTC (rev 3266)
+++ trunk/tests/unit/capi/GEOSRelateBoundaryNodeRuleTest.cpp 2011-03-08 09:04:01 UTC (rev 3267)
@@ -143,7 +143,18 @@
ensure_equals(std::string(pat_), std::string("F01FF0102"));
}
+ // Invalid/unknown rule
+ template<>
+ template<>
+ void object::test<8>()
+ {
+ geom1_ = GEOSGeomFromWKT("MULTILINESTRING((0 0, 10 0),(10 0, 10 10))");
+ geom2_ = GEOSGeomFromWKT("LINESTRING(10 0, 10 -10)");
+ pat_ = GEOSRelateBoundaryNodeRule(geom1_, geom2_, 5);
+ ensure(0 == pat_);
+ }
+
} // namespace tut
More information about the geos-commits
mailing list