aboutsummaryrefslogtreecommitdiff
path: root/test/unit/test_factory.cpp
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2019-02-18 09:45:05 +0100
committerGitHub <noreply@github.com>2019-02-18 09:45:05 +0100
commit455cb889e8259d8799f4cc9cce6b06ebe076f363 (patch)
treed70ecab787b0361c74ef854214689155b2b03602 /test/unit/test_factory.cpp
parenta8cbe0c66974871f5a7bd7ef94001ebf461ac7ea (diff)
parent1b272fc9ee5d25a0cb07d6d12df13c6a77eeb7f0 (diff)
downloadPROJ-455cb889e8259d8799f4cc9cce6b06ebe076f363.tar.gz
PROJ-455cb889e8259d8799f4cc9cce6b06ebe076f363.zip
Merge pull request #1277 from rouault/fuzzy_proj_string_comparison
tests: implement fuzzy proj string comparison in a few problematic test cases on non-x86 arch (fixes #1275)
Diffstat (limited to 'test/unit/test_factory.cpp')
-rw-r--r--test/unit/test_factory.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/unit/test_factory.cpp b/test/unit/test_factory.cpp
index 40728f96..d5c82afb 100644
--- a/test/unit/test_factory.cpp
+++ b/test/unit/test_factory.cpp
@@ -28,6 +28,8 @@
#include "gtest_include.h"
+#include "test_primitives.hpp"
+
#include "proj/common.hpp"
#include "proj/coordinateoperation.hpp"
#include "proj/coordinatesystem.hpp"
@@ -991,10 +993,12 @@ TEST(factory, AuthorityFactory_test_uom_9110) {
auto factory = AuthorityFactory::create(DatabaseContext::create(), "EPSG");
// This tests conversion from unit of measure EPSG:9110 DDD.MMSSsss
auto crs = factory->createProjectedCRS("2172");
- EXPECT_EQ(crs->exportToPROJString(PROJStringFormatter::create().get()),
- "+proj=sterea +lat_0=53.0019444444444 +lon_0=21.5027777777778 "
- "+k=0.9998 +x_0=4603000 +y_0=5806000 +ellps=krass +units=m "
- "+no_defs +type=crs");
+ EXPECT_PRED_FORMAT2(
+ ComparePROJString,
+ crs->exportToPROJString(PROJStringFormatter::create().get()),
+ "+proj=sterea +lat_0=53.0019444444444 +lon_0=21.5027777777778 "
+ "+k=0.9998 +x_0=4603000 +y_0=5806000 +ellps=krass +units=m "
+ "+no_defs +type=crs");
}
// ---------------------------------------------------------------------------