Add another Unicode testcase

It turns out I typoed the character code when
I added the previous one.

See https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2669
This commit is contained in:
Matthias Clasen 2022-05-19 12:38:14 -04:00
parent 6b5b1cd314
commit ad3c339ce4

View File

@ -381,6 +381,11 @@ test_string_insert_unichar (void)
g_string_insert_unichar (string, -1, 0xFFD0);
g_assert_cmpstr (string->str, ==, "start\xEF\xBF\x90");
g_string_free (string, TRUE);
string = g_string_new ("start");
g_string_insert_unichar (string, -1, 0xFDD0);
g_assert_cmpstr (string->str, ==, "start\xEF\xB7\x90");
g_string_free (string, TRUE);
}
static void