diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-05-16 00:54:48 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-05-16 00:54:48 +0200 |
| commit | fe3ffe8d5f6d7db7179032b10e6f5d3b37370bfd (patch) | |
| tree | 0464d546154e91d404a50267eb3e4cc240c3dde8 /test/unit/test_operation.cpp | |
| parent | 330b2066244f77f89995a1aa195ef4323948a9b9 (diff) | |
| download | PROJ-fe3ffe8d5f6d7db7179032b10e6f5d3b37370bfd.tar.gz PROJ-fe3ffe8d5f6d7db7179032b10e6f5d3b37370bfd.zip | |
createOperations(): be stricter when considering if an operation is a null one
Diffstat (limited to 'test/unit/test_operation.cpp')
| -rw-r--r-- | test/unit/test_operation.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/unit/test_operation.cpp b/test/unit/test_operation.cpp index 3d002a17..b64e4279 100644 --- a/test/unit/test_operation.cpp +++ b/test/unit/test_operation.cpp @@ -8691,13 +8691,18 @@ TEST(operation, compoundCRS_from_WKT2_no_id_to_geogCRS_3D_context) { " VDATUM[\"Normaal Amsterdams Peil\"],\n" " CS[vertical,1],\n" " AXIS[\"gravity-related height (H)\",up,\n" - " LENGTHUNIT[\"metre\",1]]]]"; + " LENGTHUNIT[\"metre\",1]]],\n" + " USAGE[\n" + " SCOPE[\"unknown\"],\n" + " AREA[\"Netherlands - onshore\"],\n" + " BBOX[50.75,3.2,53.7,7.22]]]"; + auto obj = WKTParser().createFromWKT(wkt2); auto src_from_wkt2 = nn_dynamic_pointer_cast<CRS>(obj); ASSERT_TRUE(src_from_wkt2 != nullptr); auto list2 = CoordinateOperationFactory::create()->createOperations( NN_NO_CHECK(src_from_wkt2), dst, ctxt); - ASSERT_GE(list.size(), list2.size() - 1); + ASSERT_EQ(list.size(), list2.size()); for (size_t i = 0; i < list.size(); i++) { const auto &op = list[i]; const auto &op2 = list2[i]; |
