[dia] [unit test] check connection point owner being set



commit dacdbd1eda43888ac6da5e323f11b7079c9bb440
Author: Hans Breuer <hans breuer org>
Date:   Wed Jul 10 10:43:35 2013 +0200

    [unit test] check connection point owner being set
    
    and fix a typo

 tests/test-objects.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/tests/test-objects.c b/tests/test-objects.c
index c11b5d6..e55b6da 100644
--- a/tests/test-objects.c
+++ b/tests/test-objects.c
@@ -89,7 +89,7 @@ _test_creation (gconstpointer user_data)
   g_assert (o->bounding_box.left <= o->position.x && o->position.x <= o->bounding_box.right);
   g_assert (o->bounding_box.top <= o->position.y && o->position.y <= o->bounding_box.bottom);
 
-  /* both handles can be NULL, but if not hey must belong to the object  */
+  /* both handles can be NULL, but if not they must belong to the object  */
   for (i = 0; i < o->num_handles; ++i)
     {
       if (h1 != NULL && h1 == o->handles[i])
@@ -109,6 +109,7 @@ _test_creation (gconstpointer user_data)
   for (i = 0; i < o->num_connections; ++i)
     {
       g_assert (o->connections[i] != NULL);
+      g_assert (o->connections[i]->object == o); /* owner set? */
     }
 
   /* finally */


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