diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2022-08-13 22:23:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-13 22:23:11 +0800 |
commit | d2318d9ccfe69e21d0517f0448a6469a18b69513 (patch) | |
tree | ed4845a4618f2d191afeab37fcc1363dacbef60f /tests/misc/trunner.nim | |
parent | 713f39083ee37085ba24345af741e5b448fdcc05 (diff) | |
download | Nim-d2318d9ccfe69e21d0517f0448a6469a18b69513.tar.gz |
closes #15316; add testcase (#20213)
Diffstat (limited to 'tests/misc/trunner.nim')
-rw-r--r-- | tests/misc/trunner.nim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/misc/trunner.nim b/tests/misc/trunner.nim index 67615cee9..bc2e872ef 100644 --- a/tests/misc/trunner.nim +++ b/tests/misc/trunner.nim @@ -249,6 +249,12 @@ sub/mmain.idx""", context let cmd = fmt"{nim} r -b:cpp --hints:off --nimcache:{nimcache} --warningAsError:ProveInit {file}" check execCmdEx(cmd) == ("witness\n", 0) + block: # bug #15316 + let file = testsDir / "misc/m15316.nim" + let cmd = fmt"{nim} check --hints:off --nimcache:{nimcache} {file}" + check execCmdEx(cmd) == ("m15316.nim(1, 15) Error: expression expected, but found \')\'\nm15316.nim(2, 1) Error: expected: \':\', but got: \'[EOF]\'\nm15316.nim(2, 1) Error: expression expected, but found \'[EOF]\'\nm15316.nim(2, 1) " & + "Error: expected: \')\', but got: \'[EOF]\'\nError: illformed AST: \n", 1) + block: # config.nims, nim.cfg, hintConf, bug #16557 let cmd = fmt"{nim} r --hint:all:off --hint:conf tests/newconfig/bar/mfoo.nim" let (outp, exitCode) = execCmdEx(cmd, options = {poStdErrToStdOut}) |