Add test case for single char compose sequence

This commit is contained in:
Mike FABIAN
2023-08-08 17:52:09 +02:00
parent 67a7602080
commit 9e8bce3436
2 changed files with 11 additions and 0 deletions

View File

@@ -2,3 +2,4 @@
<Multi_key> <s> <e> <q> <u> : "?"
<Multi_key> <z> <w> <i> <n> <e> <s> : "🥂"
<Multi_key> <l> <o> <n> <g> : "this is a long replacement string"
<q> : "qq"

View File

@@ -242,6 +242,16 @@ compose_table_match (void)
g_assert_true (match);
g_assert_cmpstr (output->str, ==, "this is a long replacement string");
g_string_set_size (output, 0);
buffer[0] = GDK_KEY_q;
buffer[1] = 0;
ret = gtk_compose_table_check (table, buffer, 1, &finish, &match, output);
g_assert_true (ret);
g_assert_false (finish);
g_assert_true (match);
g_assert_cmpstr (output->str, ==, "qq");
g_string_free (output, TRUE);
g_free (file);
}