mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 15:48:54 +02:00
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:
@@ -381,6 +381,11 @@ test_string_insert_unichar (void)
|
|||||||
g_string_insert_unichar (string, -1, 0xFFD0);
|
g_string_insert_unichar (string, -1, 0xFFD0);
|
||||||
g_assert_cmpstr (string->str, ==, "start\xEF\xBF\x90");
|
g_assert_cmpstr (string->str, ==, "start\xEF\xBF\x90");
|
||||||
g_string_free (string, TRUE);
|
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
|
static void
|
||||||
|
Reference in New Issue
Block a user