summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2021-04-25 03:36:06 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2021-04-27 16:25:09 +0200
commit11f31d82209aa9d137b7817a240cb78a74b76c85 (patch)
treede6fcdf4352d399726ef63e4aae8b115db61b00d
parent37323239a0b938056364db7b1aa64d5c7af0ab96 (diff)
downloadglib-11f31d82209aa9d137b7817a240cb78a74b76c85.tar.gz
tests/pattern: Add compilation and copy test for utf-8 string
While we already tested this for matching we did not when copying, so adding an expclit test for the utf8 case.
-rw-r--r--glib/tests/pattern.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/glib/tests/pattern.c b/glib/tests/pattern.c
index 0ff915681..ecc27db26 100644
--- a/glib/tests/pattern.c
+++ b/glib/tests/pattern.c
@@ -51,12 +51,12 @@ struct _CompileTest
guint min;
};
-static CompileTest compile_tests[] =
-{
+static CompileTest compile_tests[] = {
{ "*A?B*", G_MATCH_ALL, "*A?B*", 3 },
{ "ABC*DEFGH", G_MATCH_ALL_TAIL, "HGFED*CBA", 8 },
{ "ABCDEF*GH", G_MATCH_ALL, "ABCDEF*GH", 8 },
{ "ABC**?***??**DEF*GH", G_MATCH_ALL, "ABC*???DEF*GH", 11 },
+ { "**ABC***?🤌DEF**", G_MATCH_ALL, "*ABC*?🤌DEF*", 11 },
{ "*A?AA", G_MATCH_ALL_TAIL, "AA?A*", 4 },
{ "ABCD*", G_MATCH_HEAD, "ABCD", 4 },
{ "*ABCD", G_MATCH_TAIL, "ABCD", 4 },