7 send: exception message
12 test-string = "¶ µ abc ©"
13 for c in test-string characters
14 send: (c char-string, " = ", c string)
15 test-bad-utf8: "\x80" type: "starts with 0x80"
16 test-bad-utf8: "\xC0" type: "0xC0"
17 test-bad-utf8: "\xFE" type: "0xFE"
18 test-bad-utf8: "\xC2" type: "short two-byte"
19 test-bad-utf8: "\xC2 " type: "bad two-byte"
20 test-bad-utf8: "\xE0\x80" type: "short three-byte"
23 iterator = test-string characters
25 send: (c char-string, " = ", c string)
29 send: (c char-string, " = ", c string)
32 test-bad-utf8: string type: type
34 for c in string characters
36 send: ("Bad UTF-8 (", type, ") not detected!")
38 if exception message == 'Invalid UTF-8 string.'
39 send: ("Bad UTF-8 string (", type, ") detected correctly.")