diff options
author | Araq <rumpf_a@web.de> | 2012-05-28 01:17:17 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-05-28 01:17:17 +0200 |
commit | f3980eb24ad76001671c76ce668f0ee25e481ba0 (patch) | |
tree | e9fd3187ea7b9d9baf4d46fbd24520fbc7c9edf7 /tests/run | |
parent | 22188a0647c90f56d3fa23c5723d909c0ea70714 (diff) | |
download | Nim-f3980eb24ad76001671c76ce668f0ee25e481ba0.tar.gz |
made tsequtils green again
Diffstat (limited to 'tests/run')
-rw-r--r-- | tests/run/tdumptree.nim | 24 | ||||
-rw-r--r-- | tests/run/tsequtils.nim | 2 |
2 files changed, 25 insertions, 1 deletions
diff --git a/tests/run/tdumptree.nim b/tests/run/tdumptree.nim new file mode 100644 index 000000000..2a9c7d205 --- /dev/null +++ b/tests/run/tdumptree.nim @@ -0,0 +1,24 @@ +discard """ +output: '''StmtList + VarSection + IdentDefs + Ident !"x" + nil + Call + DotExpr + Ident !"foo" + Ident !"create" + IntLit 56''' +""" + +import macros + +#emit("type\n TFoo = object\n bar: int") + +#var f: TFoo +#f.bar = 5 +#echo(f.bar) + +dumpTree: + var x = foo.create(56) + diff --git a/tests/run/tsequtils.nim b/tests/run/tsequtils.nim index 2982ca612..7bc15ef9c 100644 --- a/tests/run/tsequtils.nim +++ b/tests/run/tsequtils.nim @@ -1,6 +1,6 @@ discard """ file: "tsequtils.nim" -output: '''Zip: [{"a": 1, "b": 2}, {"a": 3, "b": 4}, {"a": 5, "b": 6}] +output: '''Zip: [{"Field0": 1, "Field1": 2}, {"Field0": 3, "Field1": 4}, {"Field0": 5, "Field1": 6}] Filter Iterator: 3 Filter Iterator: 5 Filter Iterator: 7 |