Skip to content

Conversation

@ejn
Copy link

@ejn ejn commented Mar 14, 2024

In https://git.osgeo.org/gitea/geos/php-geos/issues/23 and https://git.osgeo.org/gitea/geos/php-geos/issues/31 various failed tests are mentioned, together with the comment "we have to decide whether to just expect the new behaviour or check GEOS version at testruntime to expect different outputs".

Our approach is to try and support a reasonable range of GEOS versions in a reasonably straightforward way whilst making only minimal changes in the tests.

This branch has been checked to pass all tests using all Debian versions from Buster (GEOS 3.7.1) through to Trixie (GEOS 3.12.1), which seems to us to be a reasonable target range.

masrih added 13 commits November 29, 2023 13:23
2, 3, or 4 dimensions. Default since GEOS 3.12 is 4.
see: libgeos/geos#908
Also see libgeos/geos#903

Convert to consistent format before comparison, see: libgeos/geos@4acb5e0
defines several constants related to the GEOS library version
also deleting unnecessary lines/comments
Introduce `assertEqualsAny` function for cleaner assertions with more than two expected values.
Correct the version comparison for GEOS_DEFAULT_EMPTY from 3.11 to 3.9.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant