1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
#include <test.hpp>
TEST_CASE("default constructed varint_iterators are equal") {
const protozero::const_varint_iterator<uint32_t> a{};
const protozero::const_varint_iterator<uint32_t> b{};
const protozero::iterator_range<protozero::const_varint_iterator<uint32_t>> r{};
REQUIRE(a == a);
REQUIRE(a == b);
REQUIRE(a == r.begin());
REQUIRE(a == r.end());
REQUIRE(r.empty());
REQUIRE(r.size() == 0); // NOLINT(readability-container-size-empty)
REQUIRE(r.begin() == r.end());
}
|