Add a test for short compose sequences
authorMatthias Clasen <mclasen@redhat.com>
Tue, 13 Sep 2022 02:21:39 +0000 (22:21 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 13 Sep 2022 02:30:47 +0000 (22:30 -0400)
Add a table that has a short sequence
to verify that we can parse this.

testsuite/gtk/compose/single [new file with mode: 0644]
testsuite/gtk/compose/single.expected [new file with mode: 0644]
testsuite/gtk/composetable.c

diff --git a/testsuite/gtk/compose/single b/testsuite/gtk/compose/single
new file mode 100644 (file)
index 0000000..da12117
--- /dev/null
@@ -0,0 +1 @@
+<q> : "qq"
diff --git a/testsuite/gtk/compose/single.expected b/testsuite/gtk/compose/single.expected
new file mode 100644 (file)
index 0000000..1041839
--- /dev/null
@@ -0,0 +1,6 @@
+# n_sequences: 1
+# max_seq_len: 1
+# n_index_size: 1
+# data_size: 4
+# n_chars: 3
+<U71> : "qq"
index baa83e961de48bdc3ee8f3ba83981a91e1a5e7b8..089d9386290a889a6c7ae9ef911376989afef333 100644 (file)
@@ -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);