[postgis-tickets] [SCM] PostGIS branch master updated. 3.2.0-619-ge05737915
git at osgeo.org
git at osgeo.org
Mon Feb 28 12:48:47 PST 2022
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 "PostGIS".
The branch, master has been updated
via e057379151eba06435d46766eaad0bf8351a8971 (commit)
from 95ae7fa29a8fbfa593f649b12f2a22cd42638f58 (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 e057379151eba06435d46766eaad0bf8351a8971
Author: Sandro Santilli <strk at kbt.io>
Date: Mon Feb 28 20:34:21 2022 +0100
Use ASSERT_DOUBLE_EQUAL_TOLERANCE to have obtained results showed
diff --git a/liblwgeom/cunit/cu_ptarray.c b/liblwgeom/cunit/cu_ptarray.c
index c5bc7c260..3b6cec8fc 100644
--- a/liblwgeom/cunit/cu_ptarray.c
+++ b/liblwgeom/cunit/cu_ptarray.c
@@ -322,20 +322,20 @@ static void test_ptarray_signed_area()
/* parallelogram */
line = lwgeom_as_lwline(lwgeom_from_text("LINESTRING(0 0,1 1, 2 1, 1 0, 0 0)"));
area = ptarray_signed_area(line->points);
- CU_ASSERT_DOUBLE_EQUAL(area, 1.0, 0.0000001);
+ ASSERT_DOUBLE_EQUAL_TOLERANCE(area, 1.0, 0.0000001);
lwline_free(line);
/* square */
line = lwgeom_as_lwline(lwgeom_from_text("LINESTRING(0 0,0 2, 2 2, 2 0, 0 0)"));
area = ptarray_signed_area(line->points);
- CU_ASSERT_DOUBLE_EQUAL(area, 4.0, 0.0000001);
+ ASSERT_DOUBLE_EQUAL_TOLERANCE(area, 4.0, 0.0000001);
lwline_free(line);
/* square backwares*/
line = lwgeom_as_lwline(lwgeom_from_text("LINESTRING(0 0,2 0, 2 2, 0 2, 0 0)"));
area = ptarray_signed_area(line->points);
//printf("%g\n",area);
- CU_ASSERT_DOUBLE_EQUAL(area, -4.0, 0.0000001);
+ ASSERT_DOUBLE_EQUAL_TOLERANCE(area, -4.0, 0.0000001);
lwline_free(line);
}
-----------------------------------------------------------------------
Summary of changes:
liblwgeom/cunit/cu_ptarray.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list