[geos-commits] [SCM] GEOS branch master updated. 298dbdb889ba80f241904471aeef7442487ab2db
git at osgeo.org
git at osgeo.org
Wed Apr 24 14:13:06 PDT 2019
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".
The branch, master has been updated
via 298dbdb889ba80f241904471aeef7442487ab2db (commit)
from 70cd8d043d196626f5ef10781f18ac7b2ef1bc27 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 298dbdb889ba80f241904471aeef7442487ab2db
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Wed Apr 24 14:12:47 2019 -0700
Add NaN test to unit, references #963
diff --git a/tests/unit/operation/valid/IsValidTest.cpp b/tests/unit/operation/valid/IsValidTest.cpp
index 1dd5982..0697e71 100644
--- a/tests/unit/operation/valid/IsValidTest.cpp
+++ b/tests/unit/operation/valid/IsValidTest.cpp
@@ -94,6 +94,8 @@ void object::test<2>
ensure_equals(err->getErrorType(),
TopologyValidationError::eHoleOutsideShell);
+ ensure(0 == std::isnan(errCoord.y));
+ ensure(0 == std::isnan(errCoord.x));
ensure(fabs(errCoord.y - 6671726.9) < 1.0);
ensure(fabs(errCoord.x - 25495368.0) < 1.0);
ensure_equals(valid, false);
-----------------------------------------------------------------------
Summary of changes:
tests/unit/operation/valid/IsValidTest.cpp | 2 ++
1 file changed, 2 insertions(+)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list