new tester; all tests categorized
This commit is contained in:
parent
51ee524109
commit
20b5f31c03
481 changed files with 794 additions and 2506 deletions
27
tests/macros/tdumptree.nim
Normal file
27
tests/macros/tdumptree.nim
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
discard """
|
||||
disabled: true
|
||||
output: '''StmtList
|
||||
VarSection
|
||||
IdentDefs
|
||||
Ident !"x"
|
||||
nil
|
||||
Call
|
||||
DotExpr
|
||||
Ident !"foo"
|
||||
Ident !"create"
|
||||
IntLit 56'''
|
||||
"""
|
||||
|
||||
# disabled; can't work as the output is done by the compiler
|
||||
|
||||
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)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue