add tests for Testament "reject" action (#15709)
* add test for reject action * highlight that a compilation failure is expected * add the converse test for action=reject * add trailing newline * fix wording
This commit is contained in:
parent
58a1eec96a
commit
066f3ebc2a
3 changed files with 15 additions and 0 deletions
6
tests/testament/treject.nim
Normal file
6
tests/testament/treject.nim
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
discard """
|
||||
action: "reject"
|
||||
"""
|
||||
|
||||
# this line does not compile, so the test should pass, since action="reject"
|
||||
let x: int = "type mismatch"
|
||||
Loading…
Add table
Add a link
Reference in a new issue