Adding tests for xml module.
h3rald h3rald@h3rald.com
Sun, 30 Jul 2023 11:09:24 +0000
2 files changed,
5 insertions(+),
1 deletions(-)
M
minpkg/lib/min_xml.nim
→
minpkg/lib/min_xml.nim
@@ -59,7 +59,10 @@ var attrs = newSeq[tuple[key, val: string]](0)
for attr in i.keys(attributes).qVal: let key = attr.getString let val = i.dget(attributes, attr).getString - attrs.add {key: key, val: val} + var tattr: tuple[key, val: string] + tattr.key = key + tattr.val = val + attrs.add tattr result.attrs = attrs.toXmlAttributes for child in children.qVal: result.add i.newXml(child)
M
tests/all.min
→
tests/all.min
@@ -23,6 +23,7 @@ 'crypto load
'math load 'http load 'net load +'xml load "=" 70 repeat puts! "Total Failures: $1" (failures) => % puts! failures exit