Skip to content

Commit

Permalink
Merge pull request #28 from jirutka/fix-check_page_data
Browse files Browse the repository at this point in the history
test: Fix outdated page_data_add_line call in check_page_data
  • Loading branch information
OmarCastro authored Jun 4, 2024
2 parents 1641fe7 + f1b36b2 commit 4e09fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/check_page_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ int main(void)
test_uint_equals(.result = page_data_get_number_of_lines(page_data), .expected = 0);


page_data_add_line(page_data, "aaa", true, true, true);
page_data_add_line(page_data, "aaa", "any-icon", "any-data", true, true, true);
test_string_equals(.result = page_data_get_line_by_index_or_else(page_data, 0, NULL)->text, .expected= "aaa");
test_true(page_data_get_line_by_index_or_else(page_data, -1, NULL) == NULL);
test_true(page_data_get_line_by_index_or_else(NULL, 0, NULL) == NULL);
Expand Down

0 comments on commit 4e09fec

Please sign in to comment.