aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPROJ-BOT <59655370+PROJ-BOT@users.noreply.github.com>2020-08-21 09:46:16 +0200
committerGitHub <noreply@github.com>2020-08-21 09:46:16 +0200
commit079e68525537ddb9f2515b33a0849eecc5fec089 (patch)
treea7ea11ae6f1839f830bac381d0b9efc096f9b5d8 /test
parentdb42199815c9093dbdf579702268ed3424e5c89f (diff)
downloadPROJ-079e68525537ddb9f2515b33a0849eecc5fec089.tar.gz
PROJ-079e68525537ddb9f2515b33a0849eecc5fec089.zip
createObjectsFromName(): add back case insensitivity when comparing names (#2337)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'test')
-rw-r--r--test/unit/test_factory.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/test_factory.cpp b/test/unit/test_factory.cpp
index 780bdc9a..c34723f2 100644
--- a/test/unit/test_factory.cpp
+++ b/test/unit/test_factory.cpp
@@ -2782,6 +2782,12 @@ TEST(factory, createObjectsFromName) {
}
}
+ // Exact name, but just not the official case ==> should match with exact
+ // match
+ EXPECT_EQ(factory->createObjectsFromName("WGS 84 / utm zone 31n", {}, false)
+ .size(),
+ 1U);
+
// Prime meridian
EXPECT_EQ(factoryEPSG->createObjectsFromName("Paris", {}, false, 2).size(),
1U);