binding: Improve test coverage
authorMatthias Clasen <mclasen@redhat.com>
Sun, 8 Apr 2012 14:23:16 +0000 (10:23 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 8 Apr 2012 14:24:52 +0000 (10:24 -0400)
gobject/tests/binding.c

index afa7eb9..310a991 100644 (file)
@@ -563,6 +563,9 @@ binding_same_object (void)
   g_object_set (source, "foo", 10, NULL);
   g_assert_cmpint (source->foo, ==, 10);
   g_assert_cmpint (source->bar, ==, 10);
+  g_object_set (source, "bar", 30, NULL);
+  g_assert_cmpint (source->foo, ==, 30);
+  g_assert_cmpint (source->bar, ==, 30);
 
   g_object_unref (source);
 }