[gtk/single-key-compose: 4/4] Add a test for short compose sequences




commit 72d6241c84f3a857f35fbc728393e7fbb3757215
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Sep 12 22:21:39 2022 -0400

    Add a test for short compose sequences
    
    Add a table that has a short sequence
    to verify that we can parse this.

 testsuite/gtk/compose/single          | 1 +
 testsuite/gtk/compose/single.expected | 6 ++++++
 testsuite/gtk/composetable.c          | 1 +
 3 files changed, 8 insertions(+)
---
diff --git a/testsuite/gtk/compose/single b/testsuite/gtk/compose/single
new file mode 100644
index 0000000000..da12117938
--- /dev/null
+++ b/testsuite/gtk/compose/single
@@ -0,0 +1 @@
+<q> : "qq"
diff --git a/testsuite/gtk/compose/single.expected b/testsuite/gtk/compose/single.expected
new file mode 100644
index 0000000000..1041839243
--- /dev/null
+++ b/testsuite/gtk/compose/single.expected
@@ -0,0 +1,6 @@
+# n_sequences: 1
+# max_seq_len: 1
+# n_index_size: 1
+# data_size: 4
+# n_chars: 3
+<U71> : "qq"
diff --git a/testsuite/gtk/composetable.c b/testsuite/gtk/composetable.c
index baa83e961d..089d938629 100644
--- a/testsuite/gtk/composetable.c
+++ b/testsuite/gtk/composetable.c
@@ -436,6 +436,7 @@ main (int argc, char *argv[])
   g_test_add_data_func ("/compose-table/codepoint", "codepoint", compose_table_compare);
   g_test_add_data_func ("/compose-table/multi", "multi", compose_table_compare);
   g_test_add_data_func ("/compose-table/strings", "strings", compose_table_compare);
+  g_test_add_data_func ("/compose-table/single", "single", compose_table_compare);
   g_test_add_data_func ("/compose-table/include", "include", compose_table_compare);
   g_test_add_data_func ("/compose-table/system", "system", compose_table_compare);
   g_test_add_func ("/compose-table/include-cycle", compose_table_cycle);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]