[geos-commits] [SCM] GEOS branch master updated. f29008a245ee84a7dda0c5202ae7677b2c5fa56c
git at osgeo.org
git at osgeo.org
Thu Dec 13 10:03:06 PST 2018
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 f29008a245ee84a7dda0c5202ae7677b2c5fa56c (commit)
from 9ffadc117040ab58a68e3a6b4f4b05da9ca4c61c (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 f29008a245ee84a7dda0c5202ae7677b2c5fa56c
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Thu Dec 13 10:02:20 2018 -0800
Add test for cCGAlgorithmsDD::signOfDet2x2
diff --git a/tests/unit/algorithm/CGAlgorithms/computeOrientationTest.cpp b/tests/unit/algorithm/CGAlgorithms/computeOrientationTest.cpp
index 6ef4624..8fa0461 100644
--- a/tests/unit/algorithm/CGAlgorithms/computeOrientationTest.cpp
+++ b/tests/unit/algorithm/CGAlgorithms/computeOrientationTest.cpp
@@ -98,4 +98,15 @@ namespace tut
ensure( orient != orientInv );
}
+ // 4 - make sure CGAlgorithmsDD::checkSignOfDet2x2 isn't
+ // busted
+ template<>
+ template<>
+ void object::test<4>()
+ {
+ ensure( 0 == CGAlgorithmsDD::signOfDet2x2(1, 1, 2, 2));
+ ensure( 1 == CGAlgorithmsDD::signOfDet2x2(1, 1, 2, 3));
+ ensure( -1 == CGAlgorithmsDD::signOfDet2x2(1, 1, 3, 2));
+ }
+
} // namespace tut
-----------------------------------------------------------------------
Summary of changes:
tests/unit/algorithm/CGAlgorithms/computeOrientationTest.cpp | 11 +++++++++++
1 file changed, 11 insertions(+)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list