[gtksourceview/wip/region-tests: 3/3] test-region: simplify an assertion



commit ed2afcafb5b956d2fc0612d1d8453d6c0ce0c2d3
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Aug 11 10:54:59 2016 +0200

    test-region: simplify an assertion

 testsuite/test-region.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/testsuite/test-region.c b/testsuite/test-region.c
index 2111742..989873d 100644
--- a/testsuite/test-region.c
+++ b/testsuite/test-region.c
@@ -96,11 +96,7 @@ test_region (void)
        gtk_text_buffer_insert (buffer, &iter1, "This is a test of GtkSourceRegion", -1);
 
        gtk_source_region_get_start_region_iter (region, &reg_iter);
-       if (!gtk_source_region_iter_is_end (&reg_iter))
-       {
-               g_print ("problem fetching iterator for an empty region\n");
-               g_assert_not_reached ();
-       }
+       g_assert (gtk_source_region_iter_is_end (&reg_iter));
 
        for (i = 0; i < G_N_ELEMENTS (ops); i++)
        {


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