Skip to content

Commit

Permalink
Check for uints equal in pop-count
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanplusplus committed Jan 29, 2024
1 parent baf90ef commit 9ba36fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions exercises/practice/pop-count/test_pop_count.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9ba36fc

Please sign in to comment.