[geos-commits] r2188 - trunk/tests/unit/geom/prep
svn_geos at osgeo.org
svn_geos at osgeo.org
Tue Sep 16 17:01:36 EDT 2008
Author: mloskot
Date: 2008-09-16 17:01:36 -0400 (Tue, 16 Sep 2008)
New Revision: 2188
Modified:
trunk/tests/unit/geom/prep/PreparedGeometryFactoryTest.cpp
Log:
Fixed EOL to LF.
Modified: trunk/tests/unit/geom/prep/PreparedGeometryFactoryTest.cpp
===================================================================
--- trunk/tests/unit/geom/prep/PreparedGeometryFactoryTest.cpp 2008-09-16 20:58:49 UTC (rev 2187)
+++ trunk/tests/unit/geom/prep/PreparedGeometryFactoryTest.cpp 2008-09-16 21:01:36 UTC (rev 2188)
@@ -75,20 +75,20 @@
template<>
void object::test<2>()
{
- try
- {
- GeometryPtr nullgeom = 0; // intentionally nullptr
- prep::PreparedGeometry const* pg = 0;
-
- pg = prep::PreparedGeometryFactory::prepare(nullgeom);
-
- fail("IllegalArgumentException expected");
- }
- catch (geos::util::IllegalArgumentException const& e)
- {
- const char* msg = e.what(); // ok
- ensure( msg != 0 );
+ try
+ {
+ GeometryPtr nullgeom = 0; // intentionally nullptr
+ prep::PreparedGeometry const* pg = 0;
+
+ pg = prep::PreparedGeometryFactory::prepare(nullgeom);
+
+ fail("IllegalArgumentException expected");
}
+ catch (geos::util::IllegalArgumentException const& e)
+ {
+ const char* msg = e.what(); // ok
+ ensure( msg != 0 );
+ }
}
// Test passing null-pointer to create method
@@ -96,22 +96,22 @@
template<>
void object::test<3>()
{
- try
- {
- GeometryPtr nullgeom = 0; // intentionally nullptr
- prep::PreparedGeometry const* pg = 0;
-
- prep::PreparedGeometryFactory pgf;
-
- pg = pgf.create(nullgeom);
-
- fail("IllegalArgumentException expected");
- }
- catch (geos::util::IllegalArgumentException const& e)
- {
- const char* msg = e.what(); // ok
- ensure( msg != 0 );
- }
+ try
+ {
+ GeometryPtr nullgeom = 0; // intentionally nullptr
+ prep::PreparedGeometry const* pg = 0;
+
+ prep::PreparedGeometryFactory pgf;
+
+ pg = pgf.create(nullgeom);
+
+ fail("IllegalArgumentException expected");
+ }
+ catch (geos::util::IllegalArgumentException const& e)
+ {
+ const char* msg = e.what(); // ok
+ ensure( msg != 0 );
+ }
}
// Test prepare empty GEOMETRY
More information about the geos-commits
mailing list