mirror of
https://github.com/Ed94/metadesk.git
synced 2026-08-02 04:38:14 +00:00
get rid of digraph comments, use regular tests as ways of verifying that there is one node per symbolic character. docs pass #1
This commit is contained in:
@@ -223,12 +223,8 @@ int main(void)
|
||||
MD_PushChild(size, MakeTestNode(MD_NodeKind_Label, MD_S8Lit("u64")));
|
||||
MD_PushChild(params, size);
|
||||
MD_PushChild(tree, params);
|
||||
// TODO(rjf): This test will fail once we have digraphs implemented. Adjust the separate
|
||||
// "-" and ">" set members, and combine them to form a single "->" set member.
|
||||
// {
|
||||
MD_PushChild(tree, MakeTestNode(MD_NodeKind_Label, MD_S8Lit("-")));
|
||||
MD_PushChild(tree, MakeTestNode(MD_NodeKind_Label, MD_S8Lit(">")));
|
||||
// }
|
||||
MD_PushChild(tree, MakeTestNode(MD_NodeKind_Label, MD_S8Lit("*")));
|
||||
MD_PushChild(tree, MakeTestNode(MD_NodeKind_Label, MD_S8Lit("void")));
|
||||
TestResult(MatchParsedWithNode(string, tree));
|
||||
@@ -287,11 +283,6 @@ int main(void)
|
||||
TestResult(parse.node->first_child->flags & MD_NodeFlag_BeforeSemicolon);
|
||||
TestResult(parse.node->first_child->next->flags & MD_NodeFlag_AfterSemicolon);
|
||||
}
|
||||
{
|
||||
// TODO(rjf): Enable this once we have digraphs.
|
||||
// MD_ParseResult parse = MD_ParseOneNode(MD_S8Lit(""), MD_S8Lit("(a -> b)"));
|
||||
// TestResult(parse.node->first_child->flags & MD_NodeFlag_BeforeArrow);
|
||||
}
|
||||
}
|
||||
|
||||
Test("Node Text Flags")
|
||||
|
||||
Reference in New Issue
Block a user