From 9ba36fc6853a437abba301bdd69682ef8aba7e0c Mon Sep 17 00:00:00 2001 From: Ryan Hartlage Date: Sun, 28 Jan 2024 20:09:01 -0500 Subject: [PATCH] Check for uints equal in pop-count --- exercises/practice/pop-count/test_pop_count.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/exercises/practice/pop-count/test_pop_count.c b/exercises/practice/pop-count/test_pop_count.c index 23d6b9e6..44435416 100644 --- a/exercises/practice/pop-count/test_pop_count.c +++ b/exercises/practice/pop-count/test_pop_count.c @@ -12,28 +12,28 @@ void tearDown(void) static void test_0_eggs(void) { const unsigned int expected = 0; - TEST_ASSERT_EQUAL_INT(expected, egg_count(0)); + TEST_ASSERT_EQUAL_UINT(expected, egg_count(0)); } static void test_1_eggs(void) { TEST_IGNORE(); const unsigned int expected = 1; - TEST_ASSERT_EQUAL_INT(expected, egg_count(16)); + TEST_ASSERT_EQUAL_UINT(expected, egg_count(16)); } static void test_4_eggs(void) { TEST_IGNORE(); const unsigned int expected = 4; - TEST_ASSERT_EQUAL_INT(expected, egg_count(89)); + TEST_ASSERT_EQUAL_UINT(expected, egg_count(89)); } static void test_13_eggs(void) { TEST_IGNORE(); const unsigned int expected = 13; - TEST_ASSERT_EQUAL_INT(expected, egg_count(2000000000)); + TEST_ASSERT_EQUAL_UINT(expected, egg_count(2000000000)); } int main(void)