[geos-commits] [SCM] GEOS branch master updated. 07254bfc260d0c106019d66b095d76410a7d4202

git at osgeo.org git at osgeo.org
Thu Jan 16 06:29:00 PST 2020


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, master has been updated
       via  07254bfc260d0c106019d66b095d76410a7d4202 (commit)
       via  b0f91afd8f4d1a64a018bb492c4f0d311405642b (commit)
      from  22532f5ba58aca72f0e9b977cb201530b0c5e44d (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 07254bfc260d0c106019d66b095d76410a7d4202
Author: Daniel Baston <dbaston at gmail.com>
Date:   Thu Jan 16 09:27:50 2020 -0500

    Add test for GEOSversion

diff --git a/tests/unit/capi/GEOSCAPIDefinesTest.cpp b/tests/unit/capi/GEOSCAPIDefinesTest.cpp
index d331e55..5d53471 100644
--- a/tests/unit/capi/GEOSCAPIDefinesTest.cpp
+++ b/tests/unit/capi/GEOSCAPIDefinesTest.cpp
@@ -55,5 +55,14 @@ void object::test<2>
         std::string(EXPAND_AND_QUOTE(GEOS_VERSION_PATCH)));
 }
 
+// Make sure define is consistent with function
+template<>
+template<>
+void object::test<3>
+()
+{
+    ensure_equals(GEOS_CAPI_VERSION, std::string(GEOSversion()));
+}
+
 } // namespace tut
 

commit b0f91afd8f4d1a64a018bb492c4f0d311405642b
Author: azhi <azhi at users.noreply.github.com>
Date:   Thu Jan 16 16:13:02 2020 +0300

    remove whitespace at the end of capi version

diff --git a/capi/geos_ts_c.cpp b/capi/geos_ts_c.cpp
index e60e1bd..87e8d99 100644
--- a/capi/geos_ts_c.cpp
+++ b/capi/geos_ts_c.cpp
@@ -1931,7 +1931,7 @@ extern "C" {
     const char* GEOSversion()
     {
         static char version[256];
-        sprintf(version, "%s ", GEOS_CAPI_VERSION);
+        sprintf(version, "%s", GEOS_CAPI_VERSION);
         return version;
     }
 

-----------------------------------------------------------------------

Summary of changes:
 capi/geos_ts_c.cpp                      | 2 +-
 tests/unit/capi/GEOSCAPIDefinesTest.cpp | 9 +++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list