summaryrefslogtreecommitdiff
path: root/api_test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-12-22 22:41:33 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-12-22 22:41:33 -0800
commitde6c5fb2c45dfa2791074f7d99a27b23b2106dfc (patch)
tree7416568ce255cfcaa14e3a8901966df0c5a2c906 /api_test
parenta74295a1ea686611498a75dd45597d224ce99287 (diff)
CMARK_NODE_HEADER -> CMARK_NODE_HEADING.
Defined CMARK_NODE_HEADER to CMARK_NODE_HEADING to ease the transition.
Diffstat (limited to 'api_test')
-rw-r--r--api_test/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/api_test/main.c b/api_test/main.c
index 99cedf5..ca86b13 100644
--- a/api_test/main.c
+++ b/api_test/main.c
@@ -19,7 +19,7 @@ static const cmark_node_type node_types[] = {
CMARK_NODE_CODE_BLOCK,
CMARK_NODE_HTML,
CMARK_NODE_PARAGRAPH,
- CMARK_NODE_HEADER,
+ CMARK_NODE_HEADING,
CMARK_NODE_HRULE,
CMARK_NODE_TEXT,
CMARK_NODE_SOFTBREAK,
@@ -71,7 +71,7 @@ constructor(test_batch_runner *runner)
"get_type %d", type);
switch (node->type) {
- case CMARK_NODE_HEADER:
+ case CMARK_NODE_HEADING:
INT_EQ(runner, cmark_node_get_heading_level(node), 1,
"default heading level is 1");
node->as.heading.level = 1;
@@ -515,7 +515,7 @@ hierarchy(test_batch_runner *runner)
(1 << CMARK_NODE_CODE_BLOCK) |
(1 << CMARK_NODE_HTML) |
(1 << CMARK_NODE_PARAGRAPH) |
- (1 << CMARK_NODE_HEADER) |
+ (1 << CMARK_NODE_HEADING) |
(1 << CMARK_NODE_HRULE);
int all_inlines =
(1 << CMARK_NODE_TEXT) |
@@ -535,7 +535,7 @@ hierarchy(test_batch_runner *runner)
test_content(runner, CMARK_NODE_CODE_BLOCK , 0);
test_content(runner, CMARK_NODE_HTML, 0);
test_content(runner, CMARK_NODE_PARAGRAPH, all_inlines);
- test_content(runner, CMARK_NODE_HEADER, all_inlines);
+ test_content(runner, CMARK_NODE_HEADING, all_inlines);
test_content(runner, CMARK_NODE_HRULE, 0);
test_content(runner, CMARK_NODE_TEXT, 0);
test_content(runner, CMARK_NODE_SOFTBREAK, 0);