mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-02 11:12:37 +00:00
* add test for reject action
* highlight that a compilation failure is expected
* add the converse test for action=reject
* add trailing newline
* fix wording
(cherry picked from commit 066f3ebc2a)
8 lines
171 B
Nim
8 lines
171 B
Nim
discard """
|
|
action: "reject"
|
|
"""
|
|
|
|
# Because we set action="reject", we expect this line not to compile. But the
|
|
# line does compile, therefore the test fails.
|
|
assert true
|