Skip to content

Commit

Permalink
Fix unit test failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbackhouse committed Jun 17, 2023
1 parent b2808bc commit ec5fcd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unitTests/test_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ TEST(DataBuf, canBeConstructedFromExistingData) {
TEST(DataBuf, tryingToAccessTooFarElementThrows) {
const std::array<byte, 4> data{'h', 'o', 'l', 'a'};
DataBuf instance(data.data(), data.size());
ASSERT_THROW([[maybe_unused]] auto d = instance.data(4), std::out_of_range);
ASSERT_THROW([[maybe_unused]] auto d = instance.c_data(4), std::out_of_range);
ASSERT_THROW([[maybe_unused]] auto d = instance.data(5), std::out_of_range);
ASSERT_THROW([[maybe_unused]] auto d = instance.c_data(5), std::out_of_range);
}

TEST(DataBuf, readUintFunctionsWorksOnExistingData) {
Expand Down

0 comments on commit ec5fcd7

Please sign in to comment.