testament: line
spec silently ignored in tests where errormsg is not specified
#17636
Labels
line
spec silently ignored in tests where errormsg is not specified
#17636
Example
in tests/init/tuninit1.nim:
change
line:34
toline:1234
Current Output
test still passes
Expected Output
give error saying that line is ignored in presence of
nimout
and shouldn't be specified.note also that specifying line and col and errormsg is IMO bad (because it's more work), instead, the test should specify if there's an error by adding relevant line to nimout, eg:
=> less work and less maintenance (just copy paste error)
=> test is in no way weaker
Additional Information
nimout
too lax #16698EDIT: line is honored when errormsg is specified, and silently ignored when errormsg is not specified.
See #17643 (comment) for more details on this and for suggested fix.
The text was updated successfully, but these errors were encountered: