summaryrefslogtreecommitdiff
path: root/api_test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-11-28 21:56:08 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-28 21:56:08 -0800
commitfeb119992a6fbea3cedead04b1941b1fe114990b (patch)
tree6895db0c15c9fa5125b5e800fe82f9965b8b2a1d /api_test
parent9e9b74fe465d95f1d827de1825a18c39810c0816 (diff)
Renamed identifiers in public API:
cmark_doc_parser => cmark_parser cmark_new_doc_parser => cmark_parser_new cmark_free_doc_parser => cmark_parser_free cmark_finish => cmark_parser_finish cmark_process_line => cmark_parser_process_line cmark_node_destroy => cmark_node_free Closes #223.
Diffstat (limited to 'api_test')
-rw-r--r--api_test/main.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/api_test/main.c b/api_test/main.c
index 6e54ea1..1f42807 100644
--- a/api_test/main.c
+++ b/api_test/main.c
@@ -86,7 +86,7 @@ constructor(test_batch_runner *runner)
break;
}
- cmark_node_destroy(node);
+ cmark_node_free(node);
}
}
@@ -275,7 +275,7 @@ accessors(test_batch_runner *runner)
OK(runner, !cmark_node_set_list_start(bullet_list, -1),
"set_list_start negative");
- cmark_node_destroy(doc);
+ cmark_node_free(doc);
}
static void
@@ -291,7 +291,7 @@ node_check(test_batch_runner *runner) {
INT_EQ(runner, cmark_node_check(doc, NULL), 0,
"node_check fixes tree");
- cmark_node_destroy(doc);
+ cmark_node_free(doc);
}
static void
@@ -364,11 +364,11 @@ create_tree(test_batch_runner *runner)
"render_html after shuffling");
free(html);
- cmark_node_destroy(doc);
+ cmark_node_free(doc);
// TODO: Test that the contents of an unlinked inline are valid
// after the parent block was destroyed. This doesn't work so far.
- cmark_node_destroy(emph);
+ cmark_node_free(emph);
}
void
@@ -387,7 +387,7 @@ hierarchy(test_batch_runner *runner)
OK(runner, !cmark_node_append_child(bquote3, bquote1),
"adding a parent as child fails");
- cmark_node_destroy(bquote1);
+ cmark_node_free(bquote1);
int max_node_type = CMARK_NODE_LAST_BLOCK > CMARK_NODE_LAST_INLINE
? CMARK_NODE_LAST_BLOCK : CMARK_NODE_LAST_INLINE;
@@ -451,10 +451,10 @@ test_content(test_batch_runner *runner, cmark_node_type type,
INT_EQ(runner, got, expected,
"add %d as child of %d", child_type, type);
- cmark_node_destroy(child);
+ cmark_node_free(child);
}
- cmark_node_destroy(node);
+ cmark_node_free(node);
}
static void
@@ -491,7 +491,7 @@ render_html(test_batch_runner *runner)
STR_EQ(runner, html, "<em>bar</em>", "render inline with children");
free(html);
- cmark_node_destroy(doc);
+ cmark_node_free(doc);
}
static void