Skip to content

Commit

Permalink
move test to createTest
Browse files Browse the repository at this point in the history
  • Loading branch information
pramsey committed Nov 21, 2023
1 parent 78b7dd9 commit 6d1c77a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
13 changes: 12 additions & 1 deletion tests/unit/capi/GEOSGeom_createTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@
#include <cstdlib>
#include <memory>

#include "capi_test_utils.h"

namespace tut {
//
// Test Group
//

// Common data used in test cases.
struct test_capigeosgeom_create_data {
struct test_capigeosgeom_create_data : public capitest::utility
{
GEOSGeometry* geom1_;
GEOSContextHandle_t handle_;

Expand Down Expand Up @@ -149,6 +152,14 @@ void object::test<7>
geom1_ = nullptr;
}

template<>
template<>
void object::test<8>()
{
input_ = GEOSGeom_createLineString(NULL);
ensure_equals(GEOSHasZ(input_), 0);
ensure_equals(GEOSHasM(input_), 0);
}

} // namespace tut

8 changes: 0 additions & 8 deletions tests/unit/capi/GEOSHasZMTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,6 @@ void object::test<9>()
ensure_equals(GEOSHasM(input_), 1);
}

template<>
template<>
void object::test<10>()
{
input_ = GEOSGeom_createLineString(NULL);
ensure_equals(GEOSHasZ(input_), 0);
ensure_equals(GEOSHasM(input_), 0);
}

} // namespace tut

0 comments on commit 6d1c77a

Please sign in to comment.