[amtk] testsuite: replace g_assert() calls by g_assert_true()



commit df7a73f60bd49d6ef81de712e473fdbf285cfa49
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sun Nov 3 18:33:10 2019 +0100

    testsuite: replace g_assert() calls by g_assert_true()
    
    See the documentation for those functions.

 testsuite/test-action-info-store.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/testsuite/test-action-info-store.c b/testsuite/test-action-info-store.c
index 106b0a6..7320e07 100644
--- a/testsuite/test-action-info-store.c
+++ b/testsuite/test-action-info-store.c
@@ -46,16 +46,16 @@ test_add_entries (void)
                                            NULL);
 
        info1 = amtk_action_info_store_lookup (store, "win.open");
-       g_assert (info1 != NULL);
+       g_assert_true (info1 != NULL);
        g_assert_cmpstr (amtk_action_info_get_icon_name (info1), ==, "document-open");
-       g_assert (amtk_action_info_get_tooltip (info1) == NULL);
+       g_assert_true (amtk_action_info_get_tooltip (info1) == NULL);
 
        central_store = amtk_action_info_central_store_get_singleton ();
        info2 = amtk_action_info_central_store_lookup (central_store, "win.open");
-       g_assert (info1 == info2);
+       g_assert_true (info1 == info2);
 
        info1 = amtk_action_info_store_lookup (store, "plouf");
-       g_assert (info1 == NULL);
+       g_assert_true (info1 == NULL);
 
        g_object_unref (store);
 }


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