[geos-commits] [SCM] GEOS branch main updated. a6d0ca80283a28c010fcb124f9254eae02fa42a6
git at osgeo.org
git at osgeo.org
Tue Jul 8 16:05:33 PDT 2025
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, main has been updated
via a6d0ca80283a28c010fcb124f9254eae02fa42a6 (commit)
from e7a9eb185dda3f3fca5661dda74125acb935fc69 (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 a6d0ca80283a28c010fcb124f9254eae02fa42a6
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Tue Jul 8 16:05:10 2025 -0700
Add coverage of more of DD class
diff --git a/tests/unit/math/DDTest.cpp b/tests/unit/math/DDTest.cpp
index c3d448ddd..b1d338904 100644
--- a/tests/unit/math/DDTest.cpp
+++ b/tests/unit/math/DDTest.cpp
@@ -408,19 +408,19 @@ template<>
template<>
void object::test<14> ()
{
- DD a(1.0);
- double b = 1.0;
- DD c = a + b;
- double e = 2.0;
- double f = 0.0;
- ensure_equals(e, c.doubleValue());
- ensure_equals((int)e, c.intValue());
- c = a - b;
- ensure_equals(f, c.doubleValue());
- c = a * e;
- ensure_equals(e, c.doubleValue());
- c = a / b;
- ensure_equals(b, c.doubleValue());
+ DD dd_one(1.0);
+ double zero = 0.0;
+ double one = 1.0;
+ double two = 2.0;
+ DD c = dd_one + one;
+ ensure_equals(two, c.doubleValue());
+ ensure_equals((int)two, c.intValue());
+ c = dd_one - one;
+ ensure_equals(zero, c.doubleValue());
+ c = dd_one * two;
+ ensure_equals(two, c.doubleValue());
+ c = dd_one / one;
+ ensure_equals(one, c.doubleValue());
}
template<>
-----------------------------------------------------------------------
Summary of changes:
tests/unit/math/DDTest.cpp | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list