fn testDecode(bytes: []const u8) !u21 bytes: []const u8827
828
829
830
831
832fn testDecode(bytes: []const u8) !u21 {
const length = try utf8ByteSequenceLength(bytes[0]);
if (bytes.len < length) return error.UnexpectedEof;
try testing.expect(bytes.len == length);
return utf8Decode(bytes);
}