Commit 8c156e6b authored by Matthias Clasen's avatar Matthias Clasen
Browse files

testsuite: Reduce the use of g_assert

Stop using g_assert() in the gtk tests.
parent 4d1075a0
......@@ -28,31 +28,32 @@ test_one_accel (const char *accel,
GdkModifierType mods;
guint *keycodes;
char *label, *name;
gboolean ret;
accel_key = 0;
g_assert (gtk_accelerator_parse_with_keycode (accel,
gdk_display_get_default (),
&accel_key,
&keycodes,
&mods));
ret = gtk_accelerator_parse_with_keycode (accel,
gdk_display_get_default (),
&accel_key,
&keycodes,
&mods);
g_assert_true (ret);
if (has_keysym)
{
guint accel_key_2;
GdkModifierType mods_2;
g_assert (gtk_accelerator_parse (accel,
&accel_key_2,
&mods_2));
g_assert (accel_key == accel_key_2);
g_assert (mods == mods_2);
ret = gtk_accelerator_parse (accel, &accel_key_2, &mods_2);
g_assert_true (ret);
g_assert_true (accel_key == accel_key_2);
g_assert_true (mods == mods_2);
}
if (has_keysym)
g_assert (accel_key == exp_key);
g_assert (mods == exp_mods);
g_assert (keycodes);
g_assert (keycodes[0] != 0);
g_assert_true (accel_key == exp_key);
g_assert_true (mods == exp_mods);
g_assert_nonnull (keycodes);
g_assert_true (keycodes[0] != 0);
label = gtk_accelerator_get_label_with_keycode (NULL,
accel_key,
......@@ -123,7 +124,7 @@ accel8 (void)
static void
keysyms (void)
{
g_assert (gdk_keyval_from_name ("KP_7") == GDK_KEY_KP_7);
g_assert_cmpuint (gdk_keyval_from_name ("KP_7"), ==, GDK_KEY_KP_7);
}
int
......
......@@ -676,7 +676,7 @@ test_introspection (void)
if (strcmp (expected[i].name, name) == 0)
{
found++;
g_assert (expected[i].owner == owner);
g_assert_true (expected[i].owner == owner);
g_assert_cmpstr (expected[i].name, ==, name);
g_assert_cmpstr (expected[i].params, ==, params ? g_variant_type_peek_string (params) : NULL);
g_assert_cmpstr (expected[i].property, ==, property);
......@@ -687,7 +687,7 @@ test_introspection (void)
g_error ("Unexpected GtkText action: %s", name);
j++;
}
g_assert (found == G_N_ELEMENTS (expected));
g_assert_cmpuint (found, ==, G_N_ELEMENTS (expected));
g_type_class_unref (class);
}
......
This diff is collapsed.
......@@ -36,8 +36,8 @@ test_iconview_new (void)
view = gtk_icon_view_new ();
area = gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view));
g_assert (GTK_IS_CELL_AREA_BOX (area));
g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == gtk_icon_view_get_item_orientation (GTK_ICON_VIEW (view)));
g_assert_true (GTK_IS_CELL_AREA_BOX (area));
g_assert_true (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == gtk_icon_view_get_item_orientation (GTK_ICON_VIEW (view)));
g_object_ref_sink (view);
g_object_unref (view);
......@@ -52,7 +52,7 @@ test_iconview_new_with_area (void)
area = gtk_cell_area_box_new ();
view = gtk_icon_view_new_with_area (area);
g_assert (gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view)) == area);
g_assert_true (gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view)) == area);
g_object_ref_sink (view);
g_object_unref (view);
......@@ -68,8 +68,8 @@ test_iconview_object_new (void)
area = gtk_cell_area_box_new ();
gtk_orientable_set_orientation (GTK_ORIENTABLE (area), GTK_ORIENTATION_HORIZONTAL);
view = g_object_new (GTK_TYPE_ICON_VIEW, "cell-area", area, NULL);
g_assert (gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view)) == area);
g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == gtk_icon_view_get_item_orientation (GTK_ICON_VIEW (view)));
g_assert_true (gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view)) == area);
g_assert_true (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == gtk_icon_view_get_item_orientation (GTK_ICON_VIEW (view)));
g_object_ref_sink (view);
g_object_unref (view);
......@@ -85,7 +85,7 @@ test_combobox_new (void)
view = gtk_combo_box_new ();
area = gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view));
g_assert (GTK_IS_CELL_AREA_BOX (area));
g_assert_true (GTK_IS_CELL_AREA_BOX (area));
g_object_ref_sink (view);
g_object_unref (view);
......@@ -117,8 +117,8 @@ my_combo_box_init (MyComboBox *view)
else if (subclass_init == 1)
{
area = gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view));
g_assert (GTK_IS_CELL_AREA_BOX (area));
g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == GTK_ORIENTATION_HORIZONTAL);
g_assert_true (GTK_IS_CELL_AREA_BOX (area));
g_assert_cmpint (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)), ==, GTK_ORIENTATION_HORIZONTAL);
gtk_orientable_set_orientation (GTK_ORIENTABLE (area), GTK_ORIENTATION_VERTICAL);
}
}
......@@ -134,8 +134,8 @@ test_combobox_subclass0 (void)
view = g_object_new (my_combo_box_get_type (), NULL);
area = gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view));
g_assert (GTK_IS_CELL_AREA_BOX (area));
g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == GTK_ORIENTATION_HORIZONTAL);
g_assert_true (GTK_IS_CELL_AREA_BOX (area));
g_assert_cmpint (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)), ==, GTK_ORIENTATION_HORIZONTAL);
g_object_ref_sink (view);
g_object_unref (view);
......@@ -152,8 +152,8 @@ test_combobox_subclass2 (void)
view = g_object_new (my_combo_box_get_type (), NULL);
area = gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view));
g_assert (GTK_IS_CELL_AREA_BOX (area));
g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)) == GTK_ORIENTATION_VERTICAL);
g_assert_true (GTK_IS_CELL_AREA_BOX (area));
g_assert_cmpint (gtk_orientable_get_orientation (GTK_ORIENTABLE (area)), ==, GTK_ORIENTATION_VERTICAL);
g_object_ref_sink (view);
g_object_unref (view);
......@@ -169,7 +169,7 @@ test_cellview_new (void)
view = gtk_cell_view_new ();
area = gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view));
g_assert (GTK_IS_CELL_AREA_BOX (area));
g_assert_true (GTK_IS_CELL_AREA_BOX (area));
g_object_ref_sink (view);
g_object_unref (view);
......@@ -186,7 +186,7 @@ test_cellview_new_with_context (void)
area = gtk_cell_area_box_new ();
context = gtk_cell_area_create_context (area);
view = gtk_cell_view_new_with_context (area, context);
g_assert (gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view)) == area);
g_assert_true (gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view)) == area);
g_object_ref_sink (view);
g_object_unref (view);
......@@ -202,7 +202,7 @@ test_cellview_object_new (void)
area = gtk_cell_area_box_new ();
gtk_orientable_set_orientation (GTK_ORIENTABLE (area), GTK_ORIENTATION_HORIZONTAL);
view = g_object_new (GTK_TYPE_CELL_VIEW, "cell-area", area, NULL);
g_assert (gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view)) == area);
g_assert_true (gtk_cell_layout_get_area (GTK_CELL_LAYOUT (view)) == area);
g_object_ref_sink (view);
g_object_unref (view);
......@@ -218,7 +218,7 @@ test_column_new (void)
col = gtk_tree_view_column_new ();
area = gtk_cell_layout_get_area (GTK_CELL_LAYOUT (col));
g_assert (GTK_IS_CELL_AREA_BOX (area));
g_assert_true (GTK_IS_CELL_AREA_BOX (area));
g_object_ref_sink (col);
g_object_unref (col);
......@@ -233,7 +233,7 @@ test_column_new_with_area (void)
area = gtk_cell_area_box_new ();
col = gtk_tree_view_column_new_with_area (area);
g_assert (gtk_cell_layout_get_area (GTK_CELL_LAYOUT (col)) == area);
g_assert_true (gtk_cell_layout_get_area (GTK_CELL_LAYOUT (col)) == area);
g_object_ref_sink (col);
g_object_unref (col);
......@@ -249,7 +249,7 @@ test_column_object_new (void)
area = gtk_cell_area_box_new ();
gtk_orientable_set_orientation (GTK_ORIENTABLE (area), GTK_ORIENTATION_HORIZONTAL);
col = g_object_new (GTK_TYPE_TREE_VIEW_COLUMN, "cell-area", area, NULL);
g_assert (gtk_cell_layout_get_area (GTK_CELL_LAYOUT (col)) == area);
g_assert_true (gtk_cell_layout_get_area (GTK_CELL_LAYOUT (col)) == area);
g_object_ref_sink (col);
g_object_unref (col);
......@@ -265,7 +265,7 @@ test_completion_new (void)
c = gtk_entry_completion_new ();
area = gtk_cell_layout_get_area (GTK_CELL_LAYOUT (c));
g_assert (GTK_IS_CELL_AREA_BOX (area));
g_assert_true (GTK_IS_CELL_AREA_BOX (area));
g_object_ref_sink (c);
g_object_unref (c);
......@@ -280,7 +280,7 @@ test_completion_new_with_area (void)
area = gtk_cell_area_box_new ();
c = gtk_entry_completion_new_with_area (area);
g_assert (gtk_cell_layout_get_area (GTK_CELL_LAYOUT (c)) == area);
g_assert_true (gtk_cell_layout_get_area (GTK_CELL_LAYOUT (c)) == area);
g_object_ref_sink (c);
g_object_unref (c);
......@@ -296,7 +296,7 @@ test_completion_object_new (void)
area = gtk_cell_area_box_new ();
gtk_orientable_set_orientation (GTK_ORIENTABLE (area), GTK_ORIENTATION_HORIZONTAL);
c = g_object_new (GTK_TYPE_ENTRY_COMPLETION, "cell-area", area, NULL);
g_assert (gtk_cell_layout_get_area (GTK_CELL_LAYOUT (c)) == area);
g_assert_true (gtk_cell_layout_get_area (GTK_CELL_LAYOUT (c)) == area);
g_object_ref_sink (c);
g_object_unref (c);
......
......@@ -6,7 +6,7 @@ assert_section_is_not_null (GtkCssProvider *provider,
const GError *error,
gpointer unused)
{
g_assert (section != NULL);
g_assert_nonnull (section);
}
static void
......
......@@ -14,7 +14,7 @@ main (int argc, char **argv)
display_name = g_getenv ("DISPLAY");
g_unsetenv ("DISPLAY");
has_display = gtk_init_check ();
g_assert (!has_display);
g_assert_false (has_display);
display = gdk_display_open (display_name);
......
......@@ -37,12 +37,14 @@ test_property (void)
GtkExpressionWatch *watch;
GtkStringFilter *filter;
guint counter = 0;
gboolean ret;
filter = gtk_string_filter_new (NULL);
expr = gtk_property_expression_new (GTK_TYPE_STRING_FILTER, NULL, "search");
watch = gtk_expression_watch (expr, filter, inc_counter, &counter, NULL);
g_assert (gtk_expression_evaluate (expr, filter, &value));
ret = gtk_expression_evaluate (expr, filter, &value);
g_assert_true (ret);
g_assert_cmpstr (g_value_get_string (&value), ==, NULL);
g_value_unset (&value);
......@@ -50,7 +52,8 @@ test_property (void)
g_assert_cmpint (counter, ==, 1);
counter = 0;
g_assert (gtk_expression_evaluate (expr, filter , &value));
ret = gtk_expression_evaluate (expr, filter , &value);
g_assert_true (ret);
g_assert_cmpstr (g_value_get_string (&value), ==, "Hello World");
g_value_unset (&value);
......@@ -92,6 +95,7 @@ test_cclosure (void)
GtkExpressionWatch *watch;
GtkStringFilter *filter;
guint counter = 0;
gboolean ret;
filter = GTK_STRING_FILTER (gtk_string_filter_new (NULL));
pexpr[0] = gtk_property_expression_new (GTK_TYPE_STRING_FILTER, NULL, "search");
......@@ -106,19 +110,22 @@ test_cclosure (void)
NULL);
watch = gtk_expression_watch (expr, filter, inc_counter, &counter, NULL);
g_assert (gtk_expression_evaluate (expr, filter, &value));
ret = gtk_expression_evaluate (expr, filter, &value);
g_assert_true (ret);
g_assert_cmpstr (g_value_get_string (&value), ==, "OK");
g_value_unset (&value);
gtk_string_filter_set_search (filter, "Hello World");
g_assert_cmpint (counter, ==, 1);
g_assert (gtk_expression_evaluate (expr, filter , &value));
ret = gtk_expression_evaluate (expr, filter , &value);
g_assert_true (ret);
g_assert_cmpstr (g_value_get_string (&value), ==, "OK");
g_value_unset (&value);
gtk_string_filter_set_ignore_case (filter, FALSE);
g_assert_cmpint (counter, ==, 2);
g_assert (gtk_expression_evaluate (expr, filter , &value));
ret = gtk_expression_evaluate (expr, filter , &value);
g_assert_true (ret);
g_assert_cmpstr (g_value_get_string (&value), ==, "OK");
g_value_unset (&value);
......@@ -126,7 +133,8 @@ test_cclosure (void)
gtk_string_filter_set_ignore_case (filter, TRUE);
gtk_string_filter_set_match_mode (filter, GTK_STRING_FILTER_MATCH_MODE_EXACT);
g_assert_cmpint (counter, ==, 5);
g_assert (gtk_expression_evaluate (expr, filter , &value));
ret = gtk_expression_evaluate (expr, filter , &value);
g_assert_true (ret);
g_assert_cmpstr (g_value_get_string (&value), ==, "OK");
g_value_unset (&value);
......@@ -149,10 +157,12 @@ test_closure (void)
GValue value = G_VALUE_INIT;
GtkExpression *expr;
GClosure *closure;
gboolean ret;
closure = g_cclosure_new (G_CALLBACK (make_string), NULL, NULL);
expr = gtk_closure_expression_new (G_TYPE_STRING, closure, 0, NULL);
g_assert (gtk_expression_evaluate (expr, NULL, &value));
ret = gtk_expression_evaluate (expr, NULL, &value);
g_assert_true (ret);
g_assert_cmpstr (g_value_get_string (&value), ==, "Hello");
g_value_unset (&value);
......@@ -585,7 +595,7 @@ test_nested_bind (void)
/* check that the expressions evaluate correctly */
res = gtk_expression_evaluate (filter_expr, NULL, &value);
g_assert_true (res);
g_assert (g_value_get_object (&value) == filter3);
g_assert_true (g_value_get_object (&value) == filter3);
g_value_unset (&value);
res = gtk_expression_evaluate (expr, NULL, &value);
......
......@@ -29,7 +29,7 @@ get (GListModel *model,
{
GObject *object = g_list_model_get_item (model, position);
guint ret;
g_assert (object != NULL);
g_assert_nonnull (object);
ret = GPOINTER_TO_UINT (g_object_get_qdata (object, number_quark));
g_object_unref (object);
return ret;
......@@ -50,7 +50,7 @@ append_digit (GString *s,
if (digit == 0)
return;
g_assert (digit < 10);
g_assert_cmpint (digit, <, 10);
if (s->len)
g_string_append_c (s, ' ');
......@@ -97,7 +97,7 @@ get_spelled_out (gpointer object)
guint n = GPOINTER_TO_UINT (g_object_get_qdata (object, number_quark));
GString *s;
g_assert (n < 1000000);
g_assert_cmpint (n, <, 1000000);
if (n == 0)
return g_strdup ("Zero");
......@@ -147,7 +147,7 @@ add (GListStore *store,
GObject *object;
/* 0 cannot be differentiated from NULL, so don't use it */
g_assert (number != 0);
g_assert_cmpint (number, !=, 0);
object = g_object_new (G_TYPE_OBJECT, NULL);
g_object_set_qdata (object, number_quark, GUINT_TO_POINTER (number));
......
......@@ -30,7 +30,7 @@ get (GListModel *model,
{
GObject *object = g_list_model_get_item (model, position);
guint number;
g_assert (object != NULL);
g_assert_nonnull (object);
number = GPOINTER_TO_UINT (g_object_get_qdata (object, number_quark));
g_object_unref (object);
return number;
......@@ -64,7 +64,7 @@ add (GListStore *store,
GObject *object;
/* 0 cannot be differentiated from NULL, so don't use it */
g_assert (number != 0);
g_assert_cmpint (number, !=, 0);
object = g_object_new (G_TYPE_OBJECT, NULL);
g_object_set_qdata (object, number_quark, GUINT_TO_POINTER (number));
......@@ -120,7 +120,7 @@ items_changed (GListModel *model,
guint added,
GString *changes)
{
g_assert (removed != 0 || added != 0);
g_assert_true (removed != 0 || added != 0);
if (changes->len)
g_string_append (changes, ", ");
......
......@@ -6799,8 +6799,8 @@ test_row_changed (void)
gtk_list_store_set (store, &iter2, 0, 1, -1);
gtk_list_store_set (store, &iter3, 0, 1, -1);
g_assert (row_changed_count == 3);
g_assert (filter_row_changed_count == 0);
g_assert_cmpint (row_changed_count, ==, 3);
g_assert_cmpint (filter_row_changed_count, ==, 0);
row_changed_count = 0;
filter_row_changed_count = 0;
......@@ -6813,8 +6813,8 @@ test_row_changed (void)
gtk_list_store_set (store, &iter2, 0, 2, -1);
gtk_list_store_set (store, &iter3, 0, 2, -1);
g_assert (row_changed_count == 3);
g_assert (filter_row_changed_count == 3);
g_assert_cmpint (row_changed_count, ==, 3);
g_assert_cmpint (filter_row_changed_count, ==, 3);
gtk_tree_model_unref_node (filter, &fiter1);
gtk_tree_model_unref_node (filter, &fiter2);
......
......@@ -30,7 +30,7 @@ get (GListModel *model,
{
GObject *object = g_list_model_get_item (model, position);
guint number;
g_assert (object != NULL);
g_assert_nonnull (object);
number = GPOINTER_TO_UINT (g_object_get_qdata (object, number_quark));
g_object_unref (object);
return number;
......@@ -70,7 +70,7 @@ splice (GListStore *store,
for (i = 0; i < added; i++)
{
/* 0 cannot be differentiated from NULL, so don't use it */
g_assert (numbers[i] != 0);
g_assert_cmpint (numbers[i], !=, 0);
objects[i] = g_object_new (G_TYPE_OBJECT, NULL);
g_object_set_qdata (objects[i], number_quark, GUINT_TO_POINTER (numbers[i]));
}
......@@ -89,7 +89,7 @@ insert (GListStore *store,
GObject *object;
/* 0 cannot be differentiated from NULL, so don't use it */
g_assert (number != 0);
g_assert_cmpint (number, !=, 0);
object = g_object_new (G_TYPE_OBJECT, NULL);
g_object_set_qdata (object, number_quark, GUINT_TO_POINTER (number));
......@@ -104,7 +104,7 @@ add (GListStore *store,
GObject *object;
/* 0 cannot be differentiated from NULL, so don't use it */
g_assert (number != 0);
g_assert_cmpint (number, !=, 0);
object = g_object_new (G_TYPE_OBJECT, NULL);
g_object_set_qdata (object, number_quark, GUINT_TO_POINTER (number));
......@@ -170,7 +170,7 @@ items_changed (GListModel *model,
guint added,
GString *changes)
{
g_assert (removed != 0 || added != 0);
g_assert_true (removed != 0 || added != 0);
if (changes->len)
g_string_append (changes, ", ");
......
......@@ -29,20 +29,20 @@ floating_tests (void)
GtkWidget *widget = g_object_new (GTK_TYPE_LABEL, NULL);
g_object_connect (widget, "signal::destroy", destroy, NULL, NULL);
g_assert (g_object_is_floating (widget));
g_assert_true (g_object_is_floating (widget));
g_object_ref_sink (widget);
g_assert (!g_object_is_floating (widget));
g_assert_false (g_object_is_floating (widget));
g_object_force_floating (G_OBJECT (widget));
g_assert (g_object_is_floating (widget));
g_assert_true (g_object_is_floating (widget));
g_object_ref_sink (widget);
g_assert (!g_object_is_floating (widget));
g_assert_false (g_object_is_floating (widget));
g_assert (!destroyed);
g_assert_false (destroyed);
g_object_unref (widget);
g_assert (destroyed);
g_assert_true (destroyed);
}
int
......
......@@ -163,8 +163,8 @@ gtk_tree_model_ref_count_unref_node (GtkTreeModel *model,
GtkTreeModelRefCount *ref_model = GTK_TREE_MODEL_REF_COUNT (model);
info = g_hash_table_lookup (ref_model->priv->node_hash, iter->user_data);
g_assert (info != NULL);
g_assert (info->ref_count > 0);
g_assert_nonnull (info);
g_assert_cmpint (info->ref_count, >, 0);
info->ref_count--;
}
......@@ -238,7 +238,7 @@ check_iter (GtkTreeModelRefCount *ref_model,
NodeInfo *info;
if (may_assert)
g_assert (gtk_tree_store_iter_is_valid (GTK_TREE_STORE (ref_model), iter));
g_assert_true (gtk_tree_store_iter_is_valid (GTK_TREE_STORE (ref_model), iter));
info = g_hash_table_lookup (ref_model->priv->node_hash, iter->user_data);
if (!info)
......
......@@ -99,7 +99,7 @@ assert_icon_lookup_size (const char *icon_name,
}
else
{
g_assert (path == NULL);
g_assert_null (path);
}
g_free (path);
......@@ -131,7 +131,7 @@ assert_icon_lookup_fails (const char *icon_name,
info = gtk_icon_theme_lookup_icon (get_test_icontheme (FALSE), icon_name, NULL, size, 1, direction, flags);
/* We never truly *fail*, but check that we got the image-missing fallback */
g_assert (info != NULL);
g_assert_nonnull (info);
g_assert_cmpstr (gtk_icon_paintable_get_icon_name (info), ==, "image-missing");
}
......@@ -192,7 +192,7 @@ assert_lookup_order (const char *icon_name,
gtk_set_debug_flags (debug_flags | GTK_DEBUG_ICONTHEME);
g_log_set_writer_func (log_writer, NULL, NULL);
g_assert (lookups == NULL);
g_assert_null (lookups);
if (fallbacks)
{
......@@ -214,12 +214,12 @@ assert_lookup_order (const char *icon_name,
l = lookups;
while (s != NULL)
{
g_assert (l != NULL);
g_assert_nonnull (l);
g_assert_cmpstr (s, ==, l->data);
s = va_arg (args, char *);
l = l->next;
}
g_assert (l == NULL);
g_assert_null (l);
va_end (args);
g_list_free_full (lookups, g_free);
......@@ -661,31 +661,31 @@ test_list (void)
theme = get_test_icontheme (TRUE);
icons = gtk_icon_theme_get_icon_names (theme);
g_assert (g_strv_contains ((const char * const *)icons, "size-test"));
g_assert (g_strv_contains ((const char * const *)icons, "simple"));
g_assert (g_strv_contains ((const char * const *)icons, "twosize-fixed"));
g_assert (g_strv_contains ((const char * const *)icons, "twosize"));
g_assert (g_strv_contains ((const char * const *)icons, "only32-symbolic"));
g_assert (g_strv_contains ((const char * const *)icons, "everything"));
g_assert (g_strv_contains ((const char * const *)icons, "everything-rtl"));
g_assert (g_strv_contains ((const char * const *)icons, "everything-symbolic"));
g_assert (g_strv_contains ((const char * const *)icons, "everything-justregular"));
g_assert (g_strv_contains ((const char * const *)icons, "everything-justrtl-rtl"));
g_assert (g_strv_contains ((const char * const *)icons, "everything-symbolic-rtl"));
g_assert (g_strv_contains ((const char * const *)icons, "everything-justsymbolic-symbolic"));
g_assert (gtk_icon_theme_has_icon (theme, "size-test"));
g_assert (gtk_icon_theme_has_icon (theme, "simple"));
g_assert (gtk_icon_theme_has_icon (theme, "twosize-fixed"));
g_assert (gtk_icon_theme_has_icon (theme, "twosize"));
g_assert (gtk_icon_theme_has_icon (theme, "only32-symbolic"));
g_assert (gtk_icon_theme_has_icon (theme, "everything"));
g_assert (gtk_icon_theme_has_icon (theme, "everything-rtl"));
g_assert (gtk_icon_theme_has_icon (theme, "everything-symbolic"));
g_assert (gtk_icon_theme_has_icon (theme, "everything-justregular"));
g_assert (gtk_icon_theme_has_icon (theme, "everything-justrtl-rtl"));
g_assert (gtk_icon_theme_has_icon (theme, "everything-symbolic-rtl"));
g_assert (gtk_icon_theme_has_icon (theme, "everything-justsymbolic-symbolic"));
g_assert_true (g_strv_contains ((const char * const *)icons, "size-test"));
g_assert_true (g_strv_contains ((const char * const *)icons, "simple"));
g_assert_true (g_strv_contains ((const char * const *)icons, "twosize-fixed"));
g_assert_true (g_strv_contains ((const char * const *)icons, "twosize"));
g_assert_true (g_strv_contains ((const char * const *)icons, "only32-symbolic"));
g_assert_true (g_strv_contains ((const char * const *)icons, "everything"));
g_assert_true (g_strv_contains ((const char * const *)icons, "everything-rtl"));
g_assert_true (g_strv_contains ((const char * const *)icons, "everything-symbolic"));
g_assert_true (g_strv_contains ((const char * const *)icons, "everything-justregular"));
g_assert_true (g_strv_contains ((const char * const *)icons, "everything-justrtl-rtl"));
g_assert_true (g_strv_contains ((const char * const *)icons, "everything-symbolic-rtl"));
g_assert_true (g_strv_contains ((const char * const *)icons, "everything-justsymbolic-symbolic"));
g_assert_true (gtk_icon_theme_has_icon (theme, "size-test"));
g_assert_true (gtk_icon_theme_has_icon (theme, "simple"));
g_assert_true (gtk_icon_theme_has_icon (theme, "twosize-fixed"));
g_assert_true (gtk_icon_theme_has_icon (theme, "twosize"));
g_assert_true (gtk_icon_theme_has_icon (theme, "only32-symbolic"));
g_assert_true (gtk_icon_theme_has_icon (theme, "everything"));
g_assert_true (gtk_icon_theme_has_icon (theme, "everything-rtl"));