merge stdlib tests (#9439)

This commit is contained in:
Miran 2018-10-19 11:43:35 +02:00 • committed by Andreas Rumpf
commit 9fb212cfdf
28 changed files with 458 additions and 522 deletions

View file

@ -1,27 +0,0 @@
discard """
file: "txmltree.nim"
output: '''true
true
true
true
true
'''
"""
import xmltree, strtabs
var x = <>a(href="nim.de", newText("www.nim-test.de"))
echo($x == "<a href=\"nim.de\">www.nim-test.de</a>")
echo(newText("foo").innerText == "foo")
echo(newEntity("bar").innerText == "bar")
echo(newComment("baz").innerText == "")
let y = newXmlTree("x", [
newText("foo"),
newXmlTree("y", [
newText("bar")
])
])
echo(y.innerText == "foobar")