[geos-commits] r2153 - trunk/tests/unit/geom/prep

svn_geos at osgeo.org svn_geos at osgeo.org
Mon Aug 11 19:54:57 EDT 2008


Author: mloskot
Date: 2008-08-11 19:54:57 -0400 (Mon, 11 Aug 2008)
New Revision: 2153

Modified:
   trunk/tests/unit/geom/prep/PreparedGeometryFactoryTest.cpp
Log:
Refactored tabs vs spaces in PreparedGeometryFactoryTest.

Modified: trunk/tests/unit/geom/prep/PreparedGeometryFactoryTest.cpp
===================================================================
--- trunk/tests/unit/geom/prep/PreparedGeometryFactoryTest.cpp	2008-08-11 23:52:37 UTC (rev 2152)
+++ trunk/tests/unit/geom/prep/PreparedGeometryFactoryTest.cpp	2008-08-11 23:54:57 UTC (rev 2153)
@@ -19,87 +19,86 @@
 
 namespace tut
 {
-	//
-	// Test Group
-	//
+    //
+    // Test Group
+    //
 
-	// Common data used by tests
-	struct test_preparedgeometryfactory_data
-	{
+    // Common data used by tests
+    struct test_preparedgeometryfactory_data
+    {
     };
 
-	typedef test_group<test_preparedgeometryfactory_data> group;
-	typedef group::object object;
+    typedef test_group<test_preparedgeometryfactory_data> group;
+    typedef group::object object;
 
-	group test_preparedgeometryfactory_data("geos::geom::prep::PreparedGeometryFactory");
+    group test_preparedgeometryfactory_data("geos::geom::prep::PreparedGeometryFactory");
 
-	//
-	// Test Cases
-	//
+    //
+    // Test Cases
+    //
 
-	// Test of default constructor
-	template<>
-	template<>
-	void object::test<1>()
-	{
-		prep::PreparedGeometryFactory pgf;
-	}
-	
+    // Test of default constructor
+    template<>
+    template<>
+    void object::test<1>()
+    {
+        prep::PreparedGeometryFactory pgf;
+    }
+
     // Test passing null-pointer to prepare static method
-	template<>
-	template<>
-	void object::test<2>()
-	{
+    template<>
+    template<>
+    void object::test<2>()
+    {
         // FIXME: null pointer throws segfault (Ticket #197)
         // ensure(0 == prep::PreparedGeometryFactory::prepare(0));
-	}
-	
+    }
+
     // Test passing null-pointer to create method
-	template<>
-	template<>
-	void object::test<3>()
-	{
-		prep::PreparedGeometryFactory pgf;
+    template<>
+    template<>
+    void object::test<3>()
+    {
+        prep::PreparedGeometryFactory pgf;
 
         // FIXME: null pointer throws segfault (Ticket #197)
         // ensure(0 == pgf.create(0));
-	}
-	
+    }
+
     // Test prepare with empty POINT
-	template<>
-	template<>
-	void object::test<4>()
-	{
-		GeometryFactory gf;
-		Geometry* g = gf.createEmptyGeometry();
-		ensure( 0 != g );
-		
+    template<>
+    template<>
+    void object::test<4>()
+    {
+        GeometryFactory gf;
+        Geometry* g = gf.createEmptyGeometry();
+        ensure( 0 != g );
+        
         prep::PreparedGeometry const* pg = prep::PreparedGeometryFactory::prepare(g);
-		ensure( 0 != pg );
+        ensure( 0 != pg );
 
         // FREE MEMORY
         prep::PreparedGeometryFactory::destroy(pg);
         gf.destroyGeometry(g);
-	}
-	
+    }
+
     // Test create with empty POINT
-	template<>
-	template<>
-	void object::test<5>()
-	{
-		GeometryFactory gf;
-		Geometry* g = gf.createEmptyGeometry();
-		ensure( 0 != g );
-		
-		prep::PreparedGeometryFactory pgf;
-		prep::PreparedGeometry const* pg = pgf.create(g);
-		ensure( 0 != pg );
+    template<>
+    template<>
+    void object::test<5>()
+    {
+        GeometryFactory gf;
+        Geometry* g = gf.createEmptyGeometry();
+        ensure( 0 != g );
         
+        prep::PreparedGeometryFactory pgf;
+        prep::PreparedGeometry const* pg = pgf.create(g);
+        ensure( 0 != pg );
+        
         // FREE MEMORY
         prep::PreparedGeometryFactory::destroy(pg);
         gf.destroyGeometry(g);
-	}
-	
+    }
 
 } // namespace tut
 



More information about the geos-commits mailing list