Skip to content

Commit

Permalink
fixup! Fix crs string in double vds
Browse files Browse the repository at this point in the history
  • Loading branch information
yngve793 committed May 8, 2024
1 parent 81b6e56 commit 3f40e56
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/gtest/datahandle_metadata_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,4 +309,23 @@ TEST_F(DatahandleMetadataTest, Metadata_Minimum_Cube_Double) {
delete double_minimum_datahandle;
}

TEST_F(DatahandleMetadataTest, Metadata_CRS_Double) {

const std::string DEFAULT_DATA = "file://10_samples_default.vds";
const std::string DEFAULT_CRS_DATA = "file://10_default_crs.vds";

EXPECT_THAT([&]() {
DoubleDataHandle* double_crs_datahandle = make_double_datahandle(
DEFAULT_DATA.c_str(),
CREDENTIALS.c_str(),
DEFAULT_CRS_DATA.c_str(),
CREDENTIALS.c_str(),
binary_operator::SUBTRACTION
);

delete double_crs_datahandle;
},
testing::ThrowsMessage<std::runtime_error>(testing::HasSubstr("Coordinate reference system (CRS) mismatch: utmXX versus utmXX_modified")));
}

} // namespace

0 comments on commit 3f40e56

Please sign in to comment.