Fix a test in xmltree
This commit is contained in:
parent
32109a7867
commit
a8c3c2ef0d
1 changed files with 2 additions and 1 deletions
|
|
@ -353,5 +353,6 @@ proc findAll*(n: XmlNode, tag: string): seq[XmlNode] =
|
||||||
findAll(n, tag, result)
|
findAll(n, tag, result)
|
||||||
|
|
||||||
when isMainModule:
|
when isMainModule:
|
||||||
assert """<a href="http://nim-lang.org">Nim rules.</a>""" ==
|
let link = "http://nim-lang.org"
|
||||||
|
assert """<a href="""" & escape(link) & """">Nim rules.</a>""" ==
|
||||||
$(<>a(href="http://nim-lang.org", newText("Nim rules.")))
|
$(<>a(href="http://nim-lang.org", newText("Nim rules.")))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue