diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-11-23 06:54:53 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-11-23 06:54:53 -0800 |
commit | 8ba087276c6cae9e1efde656ae973b4f714c88be (patch) | |
tree | bf90502882077bb8c7ea8bc041843c88c92a6526 /api_test/main.c | |
parent | d929a2983db96be22277c2052ea61cd8ec7ac6f1 (diff) |
Revert "Revert "Remove distinction btw atx and setext header in AST.""
This reverts commit 4570eb2bff2e1b71fa5b6408abbc69c98ff5ff24.
Diffstat (limited to 'api_test/main.c')
-rw-r--r-- | api_test/main.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/api_test/main.c b/api_test/main.c index 085d458..1a2f328 100644 --- a/api_test/main.c +++ b/api_test/main.c @@ -17,8 +17,7 @@ static const cmark_node_type node_types[] = { CMARK_NODE_INDENTED_CODE, CMARK_NODE_HTML, CMARK_NODE_PARAGRAPH, - CMARK_NODE_ATX_HEADER, - CMARK_NODE_SETEXT_HEADER, + CMARK_NODE_HEADER, CMARK_NODE_HRULE, CMARK_NODE_REFERENCE_DEF, CMARK_NODE_STRING, @@ -48,8 +47,7 @@ constructor(test_batch_runner *runner) "get_type %d", type); switch (node->type) { - case CMARK_NODE_ATX_HEADER: - case CMARK_NODE_SETEXT_HEADER: + case CMARK_NODE_HEADER: INT_EQ(runner, cmark_node_get_header_level(node), 1, "default header level is 1"); node->as.header.level = 1; @@ -380,8 +378,7 @@ hierarchy(test_batch_runner *runner) (1 << CMARK_NODE_INDENTED_CODE) | (1 << CMARK_NODE_HTML) | (1 << CMARK_NODE_PARAGRAPH) | - (1 << CMARK_NODE_ATX_HEADER) | - (1 << CMARK_NODE_SETEXT_HEADER) | + (1 << CMARK_NODE_HEADER) | (1 << CMARK_NODE_HRULE) | (1 << CMARK_NODE_REFERENCE_DEF); int all_inlines = @@ -403,8 +400,7 @@ hierarchy(test_batch_runner *runner) test_content(runner, CMARK_NODE_INDENTED_CODE, 0); test_content(runner, CMARK_NODE_HTML, 0); test_content(runner, CMARK_NODE_PARAGRAPH, all_inlines); - test_content(runner, CMARK_NODE_ATX_HEADER, all_inlines); - test_content(runner, CMARK_NODE_SETEXT_HEADER, all_inlines); + test_content(runner, CMARK_NODE_HEADER, all_inlines); test_content(runner, CMARK_NODE_HRULE, 0); test_content(runner, CMARK_NODE_REFERENCE_DEF, 0); test_content(runner, CMARK_NODE_STRING, 0); |