make tests green again

This commit is contained in:
Andreas Rumpf
2018-08-18 18:52:39 +02:00
parent 792829ad25
commit f2263cd129
3 changed files with 7 additions and 8 deletions

View File

@@ -377,7 +377,6 @@ proc findAll*(n: XmlNode, tag: string, result: var seq[XmlNode]) =
## findAll(html, "img", tags)
## for imgTag in tags:
## process(imgTag)
assert isNil(result) == false
assert n.k == xnElement
for child in n.items():
if child.k != xnElement:

View File

@@ -1,11 +1,11 @@
discard """
output: '''obj2 nil
obj nil
obj3 nil
output: '''obj2 @[]
obj @[]
obj3 @[]
3
obj2 nil
obj nil
obj3 nil'''
obj2 @[]
obj @[]
obj3 @[]'''
cmd: "nim c -r --threads:on $file"
"""

View File

@@ -24,7 +24,7 @@ doAssert "nan" == $(0.0/0.0)
# nil tests
# maybe a bit inconsistent in types
var x: seq[string]
doAssert "nil" == $(x)
doAssert "@[]" == $(x)
var y: string
doAssert "" == $(y)