cleanup tests; don't use non-working 'msg' spec field
This commit is contained in:
parent
2d0aa9b72b
commit
562d185cb7
31 changed files with 60 additions and 59 deletions
|
|
@ -1,10 +1,5 @@
|
|||
discard """
|
||||
msg: '''int int
|
||||
float float
|
||||
int int
|
||||
TFoo TFoo
|
||||
int float
|
||||
TFoo TFoo'''
|
||||
output: '''ok'''
|
||||
"""
|
||||
|
||||
import typetraits
|
||||
|
|
@ -86,3 +81,4 @@ reject bindArg(int, int, 10, 20, 30, "test")
|
|||
reject bindArg(int, string, 10.0, 20, "test", "nest")
|
||||
reject bindArg(int, string, "test", "nest", 10, 20)
|
||||
|
||||
echo "ok"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
msg: "static 10\ndynamic\nstatic 20\n"
|
||||
nimout: "static 10\ndynamic\nstatic 20\n"
|
||||
output: "s\nd\nd\ns"
|
||||
"""
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
msg: '''letters
|
||||
nimout: '''letters
|
||||
aa
|
||||
bb
|
||||
numbers
|
||||
|
|
@ -8,7 +8,7 @@ numbers
|
|||
AST a
|
||||
[(11, 22), (33, 44)]
|
||||
AST b
|
||||
(e: [55, 66], f: [77, 88])
|
||||
([55, 66], [77, 88])
|
||||
55
|
||||
10
|
||||
20Test
|
||||
|
|
@ -44,10 +44,10 @@ const
|
|||
b : Tb = (@[55,66], @[77, 88])
|
||||
|
||||
macro mA(data: static[Ta]): untyped =
|
||||
echo "AST a \n", repr(data)
|
||||
echo "AST a\n", repr(data)
|
||||
|
||||
macro mB(data: static[Tb]): untyped =
|
||||
echo "AST b \n", repr(data)
|
||||
echo "AST b\n", repr(data)
|
||||
echo data.e[0]
|
||||
|
||||
mA(a)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
msg: "int\nstring\nTBar[int]"
|
||||
nimout: "int\nstring\nTBar[int]"
|
||||
output: "int\nstring\nTBar[int]\nint\nrange 0..2(int)\nstring"
|
||||
disabled: true
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue