[geos-commits] r2752 - in trunk: build/msvc90/geos_unit tests/unit/linearref

svn_geos at osgeo.org svn_geos at osgeo.org
Mon Nov 30 05:48:10 EST 2009


Author: mloskot
Date: 2009-11-30 05:48:08 -0500 (Mon, 30 Nov 2009)
New Revision: 2752

Modified:
   trunk/build/msvc90/geos_unit/geos_unit.vcproj
   trunk/tests/unit/linearref/LengthIndexedLineTest.cpp
Log:
* Added missing tests to Visual Studio 2008 project
* Replaced call to isnan() missing in Visual C++ with ISNAN macro


Modified: trunk/build/msvc90/geos_unit/geos_unit.vcproj
===================================================================
--- trunk/build/msvc90/geos_unit/geos_unit.vcproj	2009-11-29 10:15:27 UTC (rev 2751)
+++ trunk/build/msvc90/geos_unit/geos_unit.vcproj	2009-11-30 10:48:08 UTC (rev 2752)
@@ -604,15 +604,19 @@
 				</FileConfiguration>
 			</File>
 		</Filter>
+		<Filter
+			Name="linearref"
+			>
+			<File
+				RelativePath="..\..\..\tests\unit\linearref\LengthIndexedLineTest.cpp"
+				>
+			</File>
+		</Filter>
 		<File
 			RelativePath="..\..\..\tests\unit\geos_unit.cpp"
 			>
 		</File>
 		<File
-			RelativePath="..\..\..\tests\unit\Makefile.am"
-			>
-		</File>
-		<File
 			RelativePath=".\Makefile.am"
 			>
 		</File>

Modified: trunk/tests/unit/linearref/LengthIndexedLineTest.cpp
===================================================================
--- trunk/tests/unit/linearref/LengthIndexedLineTest.cpp	2009-11-29 10:15:27 UTC (rev 2751)
+++ trunk/tests/unit/linearref/LengthIndexedLineTest.cpp	2009-11-30 10:48:08 UTC (rev 2752)
@@ -13,6 +13,9 @@
 #include <geos/geom/LineString.h> 
 #include <geos/geom/Coordinate.h>
 #include <geos/linearref/LengthIndexedLine.h>
+#ifndef ISNAN
+#include <geos/platform.h>
+#endif
 
 // std
 #include <sstream>
@@ -408,7 +411,7 @@
     LengthIndexedLine indexedLine(linearGeom.get());
     double projIndex = indexedLine.project(Coordinate(5, 5));
     Coordinate projPt = indexedLine.extractPoint(projIndex);
-    ensure(isnan(projPt.z));
+    ensure(ISNAN(projPt.z));
   }
 
 }



More information about the geos-commits mailing list