summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-10-30 18:17:50 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-10-30 18:17:50 -0400
commitd35a21873e0e4fc37ea877857eb99c1af96b6923 (patch)
treed0d3c3cb947195870169af7ff96f339e1daadb08 /testsuite
parentb23cae96436fc04bae18b5328c3d9bbb53fc7e62 (diff)
downloadgtk+-d35a21873e0e4fc37ea877857eb99c1af96b6923.tar.gz
testsuite: Improve coverage for GtkBoolFilter
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/gtk/filter.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/gtk/filter.c b/testsuite/gtk/filter.c
index b16c5c4321..0370c6b5e0 100644
--- a/testsuite/gtk/filter.c
+++ b/testsuite/gtk/filter.c
@@ -326,9 +326,11 @@ test_bool_simple (void)
assert_model (model, "3 6 9 12 15 18");
gtk_bool_filter_set_invert (GTK_BOOL_FILTER (filter), TRUE);
+ g_assert_true (gtk_bool_filter_get_invert (GTK_BOOL_FILTER (filter)));
assert_model (model, "1 2 4 5 7 8 10 11 13 14 16 17 19 20");
gtk_bool_filter_set_invert (GTK_BOOL_FILTER (filter), FALSE);
+ g_assert_false (gtk_bool_filter_get_invert (GTK_BOOL_FILTER (filter)));
assert_model (model, "3 6 9 12 15 18");
expr = gtk_cclosure_expression_new (G_TYPE_BOOLEAN,
@@ -337,6 +339,7 @@ test_bool_simple (void)
G_CALLBACK (divisible_by),
GUINT_TO_POINTER (5), NULL);
gtk_bool_filter_set_expression (GTK_BOOL_FILTER (filter), expr);
+ g_assert_true (expr == gtk_bool_filter_get_expression (GTK_BOOL_FILTER (filter)));
gtk_expression_unref (expr);
assert_model (model, "5 10 15 20");