[librsvg: 34/48] tests/dimensions.c: Make assertions in the main test function more useful



commit 2554116aae5edfbc6c4f1e97cb2decd5eab0dd22
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Sep 27 19:15:08 2018 -0500

    tests/dimensions.c: Make assertions in the main test function more useful

 tests/dimensions.c | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)
---
diff --git a/tests/dimensions.c b/tests/dimensions.c
index 94718994..6f390cf2 100644
--- a/tests/dimensions.c
+++ b/tests/dimensions.c
@@ -34,16 +34,9 @@ test_dimensions (FixtureData *fixture)
     g_assert_no_error (error);
 
     if (fixture->id) {
-        gboolean got_sub;
-
-        got_sub = rsvg_handle_has_sub (handle, fixture->id);
-        g_assert (got_sub);
-
-        got_sub = rsvg_handle_get_position_sub (handle, &position, fixture->id);
-        g_assert (got_sub);
-
-        got_sub = rsvg_handle_get_dimensions_sub (handle, &dimension, fixture->id);
-        g_assert (got_sub);
+        g_assert (rsvg_handle_has_sub (handle, fixture->id));
+        g_assert (rsvg_handle_get_position_sub (handle, &position, fixture->id));
+        g_assert (rsvg_handle_get_dimensions_sub (handle, &dimension, fixture->id));
 
         g_message ("w=%d h=%d", dimension.width, dimension.height);
     } else {


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