[prev in list] [next in list] [prev in thread] [next in thread]
List: geos-commits
Subject: [geos-commits] r2752 - in trunk: build/msvc90/geos_unit
From: svn_geos () osgeo ! org
Date: 2009-11-30 10:48:10
Message-ID: 20091130104810.CA250E00C0A () lists ! osgeo ! org
[Download RAW message or body]
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));
}
}
_______________________________________________
geos-commits mailing list
geos-commits@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/geos-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic