[gtksourceview] testsuite: dont use g_assert() in testsuite



commit 85228e2cb33c00119e97c13c37ea31aafabc872f
Author: Christian Hergert <chergert redhat com>
Date:   Sun Jan 9 10:18:06 2022 -0800

    testsuite: dont use g_assert() in testsuite
    
    Related #43

 testsuite/test-language-specs.c  | 4 ++--
 testsuite/test-vim-text-object.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/testsuite/test-language-specs.c b/testsuite/test-language-specs.c
index f1f54e90..c7d47197 100644
--- a/testsuite/test-language-specs.c
+++ b/testsuite/test-language-specs.c
@@ -10,8 +10,8 @@ test_func (gconstpointer data)
        GtkSourceLanguage *l;
        GtkSourceBuffer *buffer;
 
-       g_assert (GTK_SOURCE_IS_LANGUAGE_MANAGER (lm));
-       g_assert (data != NULL);
+       g_assert_true (GTK_SOURCE_IS_LANGUAGE_MANAGER (lm));
+       g_assert_nonnull (data);
 
        if (g_hash_table_contains (skipped, language_id))
        {
diff --git a/testsuite/test-vim-text-object.c b/testsuite/test-vim-text-object.c
index 6fe1f86f..0f966094 100644
--- a/testsuite/test-vim-text-object.c
+++ b/testsuite/test-vim-text-object.c
@@ -33,8 +33,8 @@ run_test (GtkSourceVimState *text_object,
        GtkSourceBuffer *buffer;
        GtkTextIter begin, end;
 
-       g_assert (GTK_SOURCE_IS_VIM_TEXT_OBJECT (text_object));
-       g_assert (text != NULL);
+       g_assert_true (GTK_SOURCE_IS_VIM_TEXT_OBJECT (text_object));
+       g_assert_nonnull (text);
 
        buffer = gtk_source_buffer_new (NULL);
        gtk_text_buffer_set_text (GTK_TEXT_BUFFER (buffer), text, -1);


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