Skip to content

Commit

Permalink
test: update check_page_data test
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarCastro committed Jun 4, 2024
1 parent 4e09fec commit 1708f2c
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", "any-icon", "any-data", true, true, true);
page_data_add_line(page_data, "aaa", "any-icon", "any-data", true, 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 1708f2c

Please sign in to comment.