aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/unit/gie_self_tests.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/gie_self_tests.cpp b/test/unit/gie_self_tests.cpp
index 7f9f436b..91a3069c 100644
--- a/test/unit/gie_self_tests.cpp
+++ b/test/unit/gie_self_tests.cpp
@@ -258,6 +258,12 @@ TEST_F(gieTest, proj_create_crs_to_crs) {
a = proj_trans(P, PJ_FWD, a);
EXPECT_NEAR(a.xy.x, b.xy.x, 1e-9);
EXPECT_NEAR(a.xy.y, b.xy.y, 1e-9);
+
+ auto src = proj_get_source_crs(PJ_DEFAULT_CTX, P);
+ ASSERT_TRUE(src != nullptr);
+ EXPECT_EQ(proj_get_name(src), std::string("ETRS89 / UTM zone 32N"));
+ proj_destroy(src);
+
proj_destroy(P);
/* we can also allow PROJ strings as a usable PJ */