Add test case for single char compose sequence
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user