summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2018-10-15 23:56:46 +0200
committerDaniel Carl <danielcarl@gmx.de>2018-10-15 23:56:46 +0200
commita40526042e9c1a26982a5eb504dd78d34dde649a (patch)
tree022ccd14b843559ee94c00353e5968eb65b920a9 /tests
parenta69f70bc0b37d2e1aee70eefb42db15be107ff8e (diff)
Also test completion without filtering.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-handler.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test-handler.c b/tests/test-handler.c
index d71b1ad..a1d93d0 100644
--- a/tests/test-handler.c
+++ b/tests/test-handler.c
@@ -81,10 +81,15 @@ static void test_handler_fill_completion(void)
g_assert_cmpint(gtk_tree_model_iter_n_children(GTK_TREE_MODEL(store), NULL), ==, 1);
gtk_list_store_clear(store);
- /* check case where no mathc is found */
+ /* check case where no match is found */
g_assert_false(handler_fill_completion(handler, store, "unknown"));
g_assert_cmpint(gtk_tree_model_iter_n_children(GTK_TREE_MODEL(store), NULL), ==, 0);
gtk_list_store_clear(store);
+
+ /* check case without apllied filters */
+ g_assert_true(handler_fill_completion(handler, store, ""));
+ g_assert_cmpint(gtk_tree_model_iter_n_children(GTK_TREE_MODEL(store), NULL), ==, 4);
+ gtk_list_store_clear(store);
}
int main(int argc, char *argv[])