tshouldfail is stricter
This commit is contained in:
parent
1105d03644
commit
fb1f5c62b5
5 changed files with 18 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
|||
discard """
|
||||
errormsg: "undeclared identifier: 'undeclared'"
|
||||
line: 8
|
||||
column: 7
|
||||
errormsg: "undeclared identifier: 'undeclared'"
|
||||
"""
|
||||
|
||||
# test should fail because the line directive is wrong
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
discard """
|
||||
errormsg: "wrong error message"
|
||||
line: 8
|
||||
column: 6
|
||||
errormsg: "wrong error message"
|
||||
"""
|
||||
|
||||
# test should fail because the line directive is wrong
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
file: "notthisfile.nim"
|
||||
errmsg: "undeclared identifier: 'undefined'"
|
||||
file: "notthisfile.nim"
|
||||
"""
|
||||
|
||||
echo undefined
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
discard """
|
||||
errormsg: "undeclared identifier: 'undeclared'"
|
||||
line: 9
|
||||
column: 6
|
||||
errormsg: "undeclared identifier: 'undeclared'"
|
||||
"""
|
||||
|
||||
# test should fail because the line directive is wrong
|
||||
|
|
|
|||
|
|
@ -3,15 +3,29 @@ cmd: "testament/tester --directory:testament --colors:off --backendLogging:off -
|
|||
action: compile
|
||||
nimout: '''
|
||||
FAIL: tccodecheck.nim C
|
||||
Failure: reCodegenFailure
|
||||
Expected:
|
||||
baz
|
||||
FAIL: tcolumn.nim C
|
||||
Failure: reLinesDiffer
|
||||
FAIL: terrormsg.nim C
|
||||
Failure: reMsgsDiffer
|
||||
FAIL: texitcode1.nim C
|
||||
Failure: reExitcodesDiffer
|
||||
FAIL: tfile.nim C
|
||||
Failure: reFilesDiffer
|
||||
FAIL: tline.nim C
|
||||
Failure: reLinesDiffer
|
||||
FAIL: tmaxcodesize.nim C
|
||||
Failure: reCodegenFailure
|
||||
max allowed size: 1
|
||||
FAIL: tnimout.nim C
|
||||
Failure: reMsgsDiffer
|
||||
FAIL: toutput.nim C
|
||||
Failure: reOutputsDiffer
|
||||
FAIL: toutputsub.nim C
|
||||
Failure: reOutputsDiffer
|
||||
FAIL: tsortoutput.nim C
|
||||
Failure: reOutputsDiffer
|
||||
'''
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue