all repos — min @ 3b6d4678c01b1f244d2e3cce703050def51e636e

A small but practical concatenative programming language.

Adding tests for xml module.
h3rald h3rald@h3rald.com
Sun, 30 Jul 2023 11:09:24 +0000
commit

3b6d4678c01b1f244d2e3cce703050def51e636e

parent

3f478e3b2e04630e411390f0dc2224ad42ec7133

2 files changed, 5 insertions(+), 1 deletions(-)

jump to
M minpkg/lib/min_xml.nimminpkg/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.mintests/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