mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-28 10:13:56 +00:00
tshouldfail is stricter
This commit is contained in:
@@ -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
|
||||
'''
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user