Skip to content

Commit

Permalink
Merge branch 'QuietMisdreavus/strict-strings' into QuietMisdreavus/sw…
Browse files Browse the repository at this point in the history
…ift-build
  • Loading branch information
QuietMisdreavus committed Mar 16, 2022
2 parents f5016c2 + 4d1fe42 commit fe486ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api_test/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,7 @@ static void inline_only_opt(test_batch_runner *runner) {
cmark_node_free(doc);
}

static void check_markdown_plaintext(test_batch_runner *runner, char *markdown) {
static void check_markdown_plaintext(test_batch_runner *runner, const char *markdown) {
cmark_node *doc = cmark_parse_document(markdown, strlen(markdown), CMARK_OPT_PRESERVE_WHITESPACE);
cmark_node *pg = cmark_node_first_child(doc);
INT_EQ(runner, cmark_node_get_type(pg), CMARK_NODE_PARAGRAPH, "markdown '%s' did not produce a paragraph node", markdown);
Expand Down Expand Up @@ -1228,7 +1228,7 @@ static void preserve_whitespace_opt(test_batch_runner *runner) {
check_markdown_plaintext(runner, "\nHello\n");
}

static void check_markdown_attributes_node(test_batch_runner *runner, char *markdown, cmark_node_type expectedType, char *expectedAttributes) {
static void check_markdown_attributes_node(test_batch_runner *runner, const char *markdown, cmark_node_type expectedType, const char *expectedAttributes) {
cmark_node *doc = cmark_parse_document(markdown, strlen(markdown), CMARK_OPT_DEFAULT);
cmark_node *pg = cmark_node_first_child(doc);
INT_EQ(runner, cmark_node_get_type(pg), CMARK_NODE_PARAGRAPH, "markdown '%s' did not produce a paragraph node", markdown);
Expand Down

0 comments on commit fe486ef

Please sign in to comment.