Merge branch 'nonchar-testcase' into 'main'

Add a Unicode testcase

See merge request GNOME/glib!2669
This commit is contained in:
Philip Withnall 2022-05-18 23:57:02 +00:00
commit 0efd0e12c8

View File

@ -376,6 +376,11 @@ test_string_insert_unichar (void)
g_string_insert_unichar (string, -1, 0x1D100);
g_assert_cmpstr (string->str, ==, "start\xF0\x9D\x84\x80");
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