auto const numArrayRange = crange(numArray);
EXPECT_TRUE(
(std::is_same<int const*, decltype(numArrayRange)::iterator>::value));
- EXPECT_THAT(numArrayRange, testing::ElementsAreArray(numArray));
+ EXPECT_THAT(numArrayRange, testing::IsEmpty());
}
TEST(CRangeFunc, Collection) {
constexpr Range<wchar_t const*> pieceW{L"hello", 5};
EXPECT_EQ(literalPieceW, pieceW);
}
+
+TEST(Range, LiteralSuffixContainsNulBytes) {
+ constexpr auto literalPiece = "\0foo\0"_sp;
+ EXPECT_EQ(5u, literalPiece.size());
+}