Skip to content

Commit

Permalink
Vary byte_reader tests to use various deleter<> overrides.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Aug 12, 2024
1 parent d0049ba commit d9efbdb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/stream/streamers/byte_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1439,7 +1439,7 @@ BOOST_AUTO_TEST_CASE(byte_reader__read_bytes_raw1__end_zero__not_null_valid)
const auto ptr = reader.read_bytes_raw(0);
BOOST_REQUIRE(ptr != nullptr);
BOOST_REQUIRE(reader);
allocator<>::deleter<data_chunk>(reader.get_arena())(ptr);
reader.get_allocator().deleter<data_chunk>(reader.get_arena())(ptr);
}

BOOST_AUTO_TEST_CASE(byte_reader__read_bytes_raw1__to_end__expected)
Expand All @@ -1451,7 +1451,7 @@ BOOST_AUTO_TEST_CASE(byte_reader__read_bytes_raw1__to_end__expected)
BOOST_REQUIRE(ptr != nullptr);
BOOST_REQUIRE_EQUAL(*ptr, to_chunk("abc"));
BOOST_REQUIRE(reader);
allocator<>::deleter<data_chunk>(reader.get_arena())(ptr);
reader.get_allocator().deleter<data_chunk>()(ptr);
}

BOOST_AUTO_TEST_CASE(byte_reader__read_bytes_raw1__middle__expected)
Expand All @@ -1464,7 +1464,7 @@ BOOST_AUTO_TEST_CASE(byte_reader__read_bytes_raw1__middle__expected)
BOOST_REQUIRE_EQUAL(*ptr, to_chunk("abc"));
BOOST_REQUIRE_EQUAL(stream.get(), '*');
BOOST_REQUIRE(reader);
allocator<>::deleter<data_chunk>(reader.get_arena())(ptr);
reader.get_allocator().deleter<data_chunk>()(ptr);
}

BOOST_AUTO_TEST_CASE(byte_reader__read_bytes_raw1__past_end__nullptr_invalid)
Expand Down

0 comments on commit d9efbdb

Please sign in to comment.