parent
ff39f6e260
commit
c7c6b13a32
6 changed files with 32 additions and 13 deletions
11
tests/macros/tparsefile.nim
Normal file
11
tests/macros/tparsefile.nim
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import macros
|
||||
|
||||
static:
|
||||
let fn = "mparsefile.nim"
|
||||
var raised = false
|
||||
try:
|
||||
discard parseStmt(staticRead(fn), filename = fn)
|
||||
except ValueError as e:
|
||||
raised = true
|
||||
doAssert e.msg == "mparsefile.nim(4, 1) Error: invalid indentation"
|
||||
doAssert raised
|
||||
Loading…
Add table
Add a link
Reference in a new issue