diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-01-22 22:09:26 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-01-22 22:31:44 +0100 |
| commit | ffcd6253bb6b275cfc8884eeb88aa2eeac75e3b6 (patch) | |
| tree | cd279a62afef8567235ee6ad37ff1d38c75db7b8 /test/unit/test_c_api.cpp | |
| parent | db31b6dfa9c8fe37d5706d95ce81012b8db3c3b9 (diff) | |
| download | PROJ-ffcd6253bb6b275cfc8884eeb88aa2eeac75e3b6.tar.gz PROJ-ffcd6253bb6b275cfc8884eeb88aa2eeac75e3b6.zip | |
Database: update to EPSG v9.8.6
Fixes #1867
Diffstat (limited to 'test/unit/test_c_api.cpp')
| -rw-r--r-- | test/unit/test_c_api.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/unit/test_c_api.cpp b/test/unit/test_c_api.cpp index 5c6dabba..df0bffb0 100644 --- a/test/unit/test_c_api.cpp +++ b/test/unit/test_c_api.cpp @@ -3333,9 +3333,11 @@ TEST_F(CApi, proj_get_crs_info_list_from_database) { ASSERT_NE(list, nullptr); EXPECT_GT(result_count, 1); for (int i = 0; i < result_count; i++) { - EXPECT_LE(list[i]->west_lon_degree, params->west_lon_degree); + if (list[i]->west_lon_degree < list[i]->east_lon_degree) { + EXPECT_LE(list[i]->west_lon_degree, params->west_lon_degree); + EXPECT_GE(list[i]->east_lon_degree, params->east_lon_degree); + } EXPECT_LE(list[i]->south_lat_degree, params->south_lat_degree); - EXPECT_GE(list[i]->east_lon_degree, params->east_lon_degree); EXPECT_GE(list[i]->north_lat_degree, params->north_lat_degree); } proj_get_crs_list_parameters_destroy(params); @@ -3360,9 +3362,11 @@ TEST_F(CApi, proj_get_crs_info_list_from_database) { ASSERT_NE(list, nullptr); EXPECT_GT(result_count, 1); for (int i = 0; i < result_count; i++) { - EXPECT_LE(list[i]->west_lon_degree, params->east_lon_degree); + if (list[i]->west_lon_degree < list[i]->east_lon_degree) { + EXPECT_LE(list[i]->west_lon_degree, params->west_lon_degree); + EXPECT_GE(list[i]->east_lon_degree, params->east_lon_degree); + } EXPECT_LE(list[i]->south_lat_degree, params->north_lat_degree); - EXPECT_GE(list[i]->east_lon_degree, params->west_lon_degree); EXPECT_GE(list[i]->north_lat_degree, params->south_lat_degree); } proj_get_crs_list_parameters_destroy(params); |
