From 066f3ebc2ae00af10f477dd9c07b94f1f161030d Mon Sep 17 00:00:00 2001 From: n5m <72841454+n5m@users.noreply.github.com> Date: Tue, 27 Oct 2020 07:48:14 +0000 Subject: 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 --- testament/tests/shouldfail/treject.nim | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 testament/tests/shouldfail/treject.nim (limited to 'testament/tests') diff --git a/testament/tests/shouldfail/treject.nim b/testament/tests/shouldfail/treject.nim new file mode 100644 index 000000000..aaf2b4a63 --- /dev/null +++ b/testament/tests/shouldfail/treject.nim @@ -0,0 +1,7 @@ +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 -- cgit 1.4.1-2-gfad0