aboutsummaryrefslogtreecommitdiff
path: root/test/unit/test_c_api.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/test_c_api.cpp')
-rw-r--r--test/unit/test_c_api.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/unit/test_c_api.cpp b/test/unit/test_c_api.cpp
index 34f32c19..2a82af64 100644
--- a/test/unit/test_c_api.cpp
+++ b/test/unit/test_c_api.cpp
@@ -2373,10 +2373,17 @@ TEST_F(CApi, check_coord_op_obj_can_be_used_with_proj_trans) {
// ---------------------------------------------------------------------------
TEST_F(CApi, proj_create_projections) {
+ {
+ constexpr int invalid_zone_number = 0;
+ auto projCRS =
+ proj_create_conversion_utm(m_ctxt, invalid_zone_number, 0);
+ ObjectKeeper keeper_projCRS(projCRS);
+ ASSERT_EQ(projCRS, nullptr);
+ }
/* BEGIN: Generated by scripts/create_c_api_projections.py*/
{
- auto projCRS = proj_create_conversion_utm(m_ctxt, 0, 0);
+ auto projCRS = proj_create_conversion_utm(m_ctxt, 1, 0);
ObjectKeeper keeper_projCRS(projCRS);
ASSERT_NE(projCRS, nullptr);
}