@@ -1943,7 +1943,9 @@ void test_utf8() {
19431943 let_assert (auto l = lines (" a\u2029 b" ), l.size () >= 1 );
19441944
19451945 // Use `_sv` literals for size-aware NUL-containing strings
1946- let_assert (auto l = lines (" a\x00b " _sv), l.size () == 1 ); // NUL in middle - NOT a newline
1946+ let_assert (auto l = lines (" a\x00 "
1947+ " b" _sv),
1948+ l.size () == 1 ); // NUL in middle - NOT a newline
19471949 let_assert (auto l = lines (" \x00\x00\x00 " _sv), l.size () == 1 ); // Only NULs - one "line"
19481950 let_assert (auto l = lines (" hello\x00 world" _sv), l.size () == 1 ); // NUL between words - NOT a newline
19491951 let_assert (auto l = lines (" \x00\n " _sv), l.size () == 2 ); // NUL before newline - find \n, yields 2 segments
@@ -2024,7 +2026,9 @@ void test_utf8() {
20242026 let_assert (auto w = words (" a\u001F b" ), w.size () == 1 ); // UNIT SEPARATOR - correctly NOT split
20252027
20262028 // Use `_sv` literals for size-aware NUL-containing strings
2027- let_assert (auto w = words (" a\x00b " _sv), w.size () == 1 ); // NUL in middle - NOT split
2029+ let_assert (auto w = words (" a\x00 "
2030+ " b" _sv),
2031+ w.size () == 1 ); // NUL in middle - NOT split
20282032 let_assert (auto w = words (" \x00\x00\x00 " _sv), w.size () == 1 ); // Only NULs - one "word"
20292033 let_assert (auto w = words (" hello\x00 world" _sv), w.size () == 1 ); // NUL between words - NOT split
20302034 let_assert (auto w = words (" \x00 a" _sv), w.size () == 2 ); // NUL before space - yields 2 segments
0 commit comments