Skip to content

Commit

Permalink
Fix CHECK_THROWS_WITH -> CHECK_THROWS
Browse files Browse the repository at this point in the history
  • Loading branch information
chillenzer committed Jul 17, 2024
1 parent 67a980f commit 21c23a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/unit/PageInterpretation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,10 @@ TEST_CASE("PageInterpretation.destroy")
SECTION("throws if given an invalid pointer.")
{
pointer = nullptr;
CHECK_THROWS_WITH(
CHECK_THROWS(
page.destroy(accSerial, pointer),
Catch::Contains("Attempted to destroy out-of-bounds pointer. Chunk index out of range!"));
throw std::runtime_error{"Attempted to destroy an invalid pointer! Either the pointer does not point "
"to a valid chunk or it is not marked as allocated."};
}

SECTION("allows pointers to anywhere in the chunk.")
Expand Down

0 comments on commit 21c23a8

Please sign in to comment.