new tester; all tests categorized
This commit is contained in:
parent
51ee524109
commit
20b5f31c03
481 changed files with 794 additions and 2506 deletions
18
tests/template/thygienictempl.nim
Normal file
18
tests/template/thygienictempl.nim
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
|
||||
var
|
||||
e = "abc"
|
||||
|
||||
raise newException(EIO, e & "ha!")
|
||||
|
||||
template t() = echo(foo)
|
||||
|
||||
var foo = 12
|
||||
t()
|
||||
|
||||
|
||||
template test_in(a, b, c: expr): bool {.immediate, dirty.} =
|
||||
var result {.gensym.}: bool = false
|
||||
false
|
||||
|
||||
when isMainModule:
|
||||
assert test_in(ret2, "test", str_val)
|
||||
Loading…
Add table
Add a link
Reference in a new issue