]> granicus.if.org Git - check/commitdiff
Remove stdbool.h dependency from unit test
authorbel2125 <bel2125@gmail.com>
Fri, 25 Aug 2017 20:46:35 +0000 (22:46 +0200)
committerbel2125 <bel2125@gmail.com>
Fri, 25 Aug 2017 20:46:35 +0000 (22:46 +0200)
tests/check_list.c

index d95315e3ee6201e39cb53e9b8c2130fa8b7ad385..6905e824c97422878a2db191ffd2f52c2be0b6df 100644 (file)
@@ -171,14 +171,14 @@ START_TEST(test_contains)
     char otherData[] = "other";
     char goalData[] = "goal";
 
-    ck_assert_msg (check_list_contains(lp, goalData) == false,
+    ck_assert_msg (check_list_contains(lp, goalData) == 0,
                        "The goal data should not be in the list yet");
 
     int index;
     for(index = 0; index < 10; index++)
     {
         check_list_add_end (lp, otherData);
-        ck_assert_msg (check_list_contains(lp, goalData) == false,
+        ck_assert_msg (check_list_contains(lp, goalData) == 0,
                    "The goal data should not be in the list yet");
     }