peterstace / simplefeatures

Simple Features is a pure Go Implementation of the OpenGIS Simple Feature Access Specification
MIT License
129 stars 19 forks source link

Store `cmprefimpl` strings in a separate file #486

Open peterstace opened 1 year ago

peterstace commented 1 year ago

Currently, the input strings for the cmprefimpl tests are scraped from the simplefeatures codebase. The intention is that the unit tests in the codebase contain a lot of WKT literals, which are perfect inputs for the cmprefimpl tests.

This approach has the downside that the addition of new unit tests can sometimes cause the cmprefimpl tests to fail. Any additional unit tests (with novel inputs) can create additional cmprefimpl test cases, which may fail.

It would be nice if the cmprefimpl inputs were decoupled from the unit tests. One way to do this could be to: