Skip to content

Commit

Permalink
test: Fix outdated page_data_add_line call in check_page_data
Browse files Browse the repository at this point in the history
    check_page_data.c:18:5: error: too few arguments to function 'page_data_add_line'
       18 |     page_data_add_line(page_data, "aaa", true, true, true);
          |     ^~~~~~~~~~~~~~~~~~
    In file included from check_page_data.c:4:
    ../src/page_data.h:58:6: note: declared here
       58 | void page_data_add_line(PageData * pageData, const gchar * label, const gchar * icon, const gchar * data, gboolean urgent, gboolean highlight, gboolean markup);
          |      ^~~~~~~~~~~~~~~~~~
  • Loading branch information
jirutka committed Feb 1, 2022
1 parent c845777 commit f1b36b2
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 f1b36b2

Please sign in to comment.