mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-26 04:02:09 +01: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:
parent
6b5b1cd314
commit
ad3c339ce4
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user