mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
tests: clean up for Unicode corrigendum #9
Unicode corrigendum #9 spells out in no uncertain terms that on
conversion interfaces we should not reject characters like U+FFFE and
U+FFFF which we were doing before.
Commit f91ef4ef15
started accepting these
characters, but we had some testcases that were checking that strings
containing these characters should be rejected.
Update the tests.
https://bugzilla.gnome.org/show_bug.cgi?id=694669
This commit is contained in:
parent
a839dc5df6
commit
e359bc09c2
@ -72,7 +72,7 @@ Test test[] = {
|
||||
/* last sequence of each length */
|
||||
{ "\x7f", -1, 1, TRUE },
|
||||
{ "\xdf\xbf", -1, 2, TRUE },
|
||||
{ "\xef\xbf\xbf", -1, 0, FALSE },
|
||||
{ "\xef\xbf\xbf", -1, 3, TRUE },
|
||||
{ "\xf7\xbf\xbf\xbf", -1, 0, FALSE },
|
||||
{ "\xfb\xbf\xbf\xbf\xbf", -1, 0, FALSE },
|
||||
{ "\xfd\xbf\xbf\xbf\xbf\xbf", -1, 0, FALSE },
|
||||
@ -80,7 +80,7 @@ Test test[] = {
|
||||
{ "\xed\x9f\xbf", -1, 3, TRUE },
|
||||
{ "\xee\x80\x80", -1, 3, TRUE },
|
||||
{ "\xef\xbf\xbd", -1, 3, TRUE },
|
||||
{ "\xf4\x8f\xbf\xbf", -1, 0, FALSE },
|
||||
{ "\xf4\x8f\xbf\xbf", -1, 4, TRUE },
|
||||
{ "\xf4\x90\x80\x80", -1, 0, FALSE },
|
||||
/* malformed sequences */
|
||||
/* continuation bytes */
|
||||
@ -267,8 +267,6 @@ Test test[] = {
|
||||
{ "\x20\xed\xae\x80\xed\xbf\xbf\x20", -1, 1, FALSE },
|
||||
{ "\x20\xed\xaf\xbf\xed\xb0\x80\x20", -1, 1, FALSE },
|
||||
{ "\x20\xed\xaf\xbf\xed\xbf\xbf\x20", -1, 1, FALSE },
|
||||
{ "\x20\xef\xbf\xbe\x20", -1, 1, FALSE },
|
||||
{ "\x20\xef\xbf\xbf\x20", -1, 1, FALSE },
|
||||
|
||||
{ NULL, }
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user