tests: Fix logic when testing for empty state set
authorJohn E <johne53@tiscali.co.uk>
Wed, 27 Mar 2013 14:46:15 +0000 (15:46 +0100)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 27 Mar 2013 14:46:15 +0000 (15:46 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=696466

tests/teststateset.c

index 27c15a9..f2cb1d4 100644 (file)
@@ -34,7 +34,7 @@ test_state_set (void)
   state_set1 = atk_state_set_new ();
 
   b_val = atk_state_set_is_empty (state_set1);  
-  if (b_val)
+  if (!b_val)
   {
     g_print ("New state set is not empty\n");
     return FALSE;
@@ -48,7 +48,7 @@ test_state_set (void)
   }
 
   b_val = atk_state_set_is_empty (state_set1);  
-  if (!b_val)
+  if (b_val)
   {
     g_print ("New state set is empty when it should not be\n");
     return FALSE;