We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c078a6 commit d22376cCopy full SHA for d22376c
lib/std/unicode.zig
@@ -752,7 +752,7 @@ test "misc invalid utf8" {
752
fn testMiscInvalidUtf8() !void {
753
// codepoint out of bounds
754
try testError("\xf4\x90\x80\x80", error.Utf8CodepointTooLarge);
755
- try testError("\xf7\xbf\xbf\xbf", error.Utf8CodepointTooLarge);
+ try testError("\xf7\xbf\xbf\xbf", error.Utf8InvalidStartByte);
756
// surrogate halves
757
try testValid("\xed\x9f\xbf", 0xd7ff);
758
try testError("\xed\xa0\x80", error.Utf8EncodesSurrogateHalf);
0 commit comments