[geos-commits] [SCM] GEOS branch main updated. 15ef9178e57dcc9adc3d84ebe26d9c4b1a86cc73
git at osgeo.org
git at osgeo.org
Wed Oct 15 14:17:59 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 15ef9178e57dcc9adc3d84ebe26d9c4b1a86cc73 (commit)
from 2e12fa312d8ed12b36839ef20c193b49d695f1d4 (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 15ef9178e57dcc9adc3d84ebe26d9c4b1a86cc73
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Wed Oct 15 13:59:48 2025 -0700
Prepared geometry DE9IM test from postgis-users list, broken in Windows, not in MacOS?
diff --git a/tests/unit/operation/relateng/RelateNGTest.cpp b/tests/unit/operation/relateng/RelateNGTest.cpp
index 2a4a53156..ec4a757f6 100644
--- a/tests/unit/operation/relateng/RelateNGTest.cpp
+++ b/tests/unit/operation/relateng/RelateNGTest.cpp
@@ -914,5 +914,15 @@ void object::test<63> ()
checkRelate(a, b, "212101212");
}
+// Prepared test
+template<>
+template<>
+void object::test<64> ()
+{
+ std::string a = "LINESTRING(120 215, 176 197)";
+ std::string b = "POLYGON ((100 200, 140 230, 180 310, 280 310, 390 270, 400 210, 320 140, 215 141, 150 170, 100 200))";
+ checkRelate(a, b, "1FF00F212");
+}
+
} // namespace tut
diff --git a/tests/unit/operation/relateng/RelateNGTest.h b/tests/unit/operation/relateng/RelateNGTest.h
index a1f4f7d07..0a6bff3ac 100644
--- a/tests/unit/operation/relateng/RelateNGTest.h
+++ b/tests/unit/operation/relateng/RelateNGTest.h
@@ -48,7 +48,10 @@ struct test_relateng_support {
ensure_equals("preparedContains", prep_a->contains(b), a->contains(b));
ensure_equals("preparedCrosses", prep_a->crosses(b), a->crosses(b));
ensure_equals("preparedTouches", prep_a->touches(b), a->touches(b));
- ensure_equals("preparedRelate", prep_a->relate(b)->toString(), a->relate(b)->toString());
+ ensure_equals("preparedRelate", prep_a->relate(b)->toString(),
+ a->relate(b)->toString());
+ ensure_equals("preparedRelateBool", prep_a->relate(b, a->relate(b)->toString()),
+ a->relate(b, a->relate(b)->toString()));
}
void checkIntersectsDisjoint(const std::string& wkta, const std::string& wktb, bool expectedValue)
-----------------------------------------------------------------------
Summary of changes:
tests/unit/operation/relateng/RelateNGTest.cpp | 10 ++++++++++
tests/unit/operation/relateng/RelateNGTest.h | 5 ++++-
2 files changed, 14 insertions(+), 1 deletion(-)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list