diff --git a/tests/stdlib/thtmlparser2814.nim b/tests/stdlib/thtmlparser2814.nim index 74c1a95563..968d390f13 100644 --- a/tests/stdlib/thtmlparser2814.nim +++ b/tests/stdlib/thtmlparser2814.nim @@ -1,5 +1,5 @@ discard """ - output: "@[]" + output: true """ import htmlparser import xmltree @@ -24,6 +24,7 @@ from streams import newStringStream ## ## + for ltype in [["dl","dd"], ["ul","li"]]: let desc_item = if ltype[0]=="dl": "
that
$2>" % [desc_item, ltype[1]] @@ -35,4 +36,9 @@ for ltype in [["dl","dd"], ["ul","li"]]: let parseH = parseHtml(newStringStream(list),"statichtml", errors =errors) - echo $parseH.findAll(ltype[1])[0].child("p") == "that
" + if $parseH.findAll(ltype[1])[0].child("p") != "that
": + echo "case " & ltype[0] & " failed !" + quit(2) + + +echo "true"