discard """ output: true """ import htmlparser import xmltree import strutils from streams import newStringStream ## builds the two cases below and test that ## ``//[dd,li]`` has "
that
" as children ## ##that
##that
##that
$2>" % [desc_item, ltype[1]] let list = """ <$1> $2 $1> """ % [ltype[0], item] var errors : seq[string] = @[] let parseH = parseHtml(newStringStream(list),"statichtml", errors =errors) if $parseH.findAll(ltype[1])[0].child("p") != "that
": echo "case " & ltype[0] & " failed !" quit(2) echo "true"