on master help sign in
Get both pieces working on a similar example
commit04b3bd0ebe8491f23fa0fe8877a6475c34bdea99 authorNeil Mitchell <ndmitchell@gmail.com> dateWed 3 Jan 2018, 22:14 (9 years ago) parent6b1b480
2 files changed+4−3
gen/Main.hs+3−2 gen/test.c+1−1
gen/Main.hs+3−2
@@ -41,8 +41,9 @@ buildRule from to act = do
4141 act
4242
4343examples :: [(Bool, String)]
44−examples =
45− [(True, "<test />")
44+examples = take 1
45+ [(True, "<test foo='123 xyz'><inner /> value</test>")
46+ ,(True, "<test />")
4647 ,(True, "<test id='bob'>here<extra/>there</test>")
4748 ,(True, "<test /><close />")
4849 ,(True, "<test /><!-- comment > --><close />")
gen/test.c+1−1
@@ -335,7 +335,7 @@ document* hexml_document_parse(const char* s, int slen)
335335
336336int main()
337337{
338− const document* d = hexml_document_parse("<test foo='123 xyz'/>", -1);
338+ const document* d = hexml_document_parse("<test foo='123 xyz'><inner /> value</test>", -1);
339339 char buf[1000];
340340 int len = hexml_node_render(d, hexml_document_node(d), buf, sizeof(buf));
341341 buf[len] = 0;