Skip to content

Commit

Permalink
Return int in pop-count example (#949)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanplusplus authored Feb 3, 2024
1 parent 48d3608 commit 962d4e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions exercises/practice/eliuds-eggs/test_eliuds_eggs.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 962d4e4

Please sign in to comment.