mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-28 00:16:15 +01:00
Add a Unicode testcase
This verifies that GString is not to blame for the bug in https://github.com/harfbuzz/harfbuzz/issues/3590
This commit is contained in:
parent
b90bf35000
commit
240675d5f4
@ -376,6 +376,11 @@ test_string_insert_unichar (void)
|
|||||||
g_string_insert_unichar (string, -1, 0x1D100);
|
g_string_insert_unichar (string, -1, 0x1D100);
|
||||||
g_assert_cmpstr (string->str, ==, "start\xF0\x9D\x84\x80");
|
g_assert_cmpstr (string->str, ==, "start\xF0\x9D\x84\x80");
|
||||||
g_string_free (string, TRUE);
|
g_string_free (string, TRUE);
|
||||||
|
|
||||||
|
string = g_string_new ("start");
|
||||||
|
g_string_insert_unichar (string, -1, 0xFFD0);
|
||||||
|
g_assert_cmpstr (string->str, ==, "start\xEF\xBF\x90");
|
||||||
|
g_string_free (string, TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user