Skip to content

Commit

Permalink
test_beer_song.c - Fix assertion (#930)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanplusplus authored Nov 19, 2023
1 parent 9182dd5 commit 196f7a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/practice/beer-song/test_beer_song.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static void check_song(uint16_t expected_line_count,
for (size_t i = 0; i < expected_line_count; ++i)
TEST_ASSERT_EQUAL_STRING(expected_song[i], actual[i]);
for (size_t i = expected_line_count; i < MAX_LINE_COUNT; ++i)
TEST_ASSERT_EQUAL_STRING(actual_song[i], "");
TEST_ASSERT_EQUAL_STRING("", actual_song[i]);
}

static void test_first_generic_verse(void)
Expand Down

0 comments on commit 196f7a4

Please sign in to comment.