Skip to content

Commit d22376c

Browse files
committed
Update test
1 parent 8c078a6 commit d22376c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/unicode.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ test "misc invalid utf8" {
752752
fn testMiscInvalidUtf8() !void {
753753
// codepoint out of bounds
754754
try testError("\xf4\x90\x80\x80", error.Utf8CodepointTooLarge);
755-
try testError("\xf7\xbf\xbf\xbf", error.Utf8CodepointTooLarge);
755+
try testError("\xf7\xbf\xbf\xbf", error.Utf8InvalidStartByte);
756756
// surrogate halves
757757
try testValid("\xed\x9f\xbf", 0xd7ff);
758758
try testError("\xed\xa0\x80", error.Utf8EncodesSurrogateHalf);

0 commit comments

Comments
 (0)