initialize empty string_view with empty string so std::string_view::begin does not point to null

This commit is contained in:
Arthur Passos 2023-03-09 13:19:51 -03:00
parent 5ba1b5d43c
commit 003bbb2685

View File

@ -79,7 +79,7 @@ TEST(FindNotSymbols, ExtraSymbols)
TEST(FindNotSymbols, EmptyString)
{
std::string_view s;
std::string_view s = "";
test_find_first_not<'h', 'e', 'l', 'o', 'w', 'r', 'd', ' '>(s, s.end());
}