diff --git a/testament/tests/shouldfail/treject.nim b/testament/tests/shouldfail/treject.nim new file mode 100644 index 0000000000..aaf2b4a63c --- /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 diff --git a/tests/testament/treject.nim b/tests/testament/treject.nim new file mode 100644 index 0000000000..be2db86a9a --- /dev/null +++ b/tests/testament/treject.nim @@ -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" diff --git a/tests/testament/tshould_not_work.nim b/tests/testament/tshould_not_work.nim index 501e2c32f8..e4d3c7be7d 100644 --- a/tests/testament/tshould_not_work.nim +++ b/tests/testament/tshould_not_work.nim @@ -25,6 +25,8 @@ FAIL: tests/shouldfail/toutput.nim C Failure: reOutputsDiffer FAIL: tests/shouldfail/toutputsub.nim C Failure: reOutputsDiffer +FAIL: tests/shouldfail/treject.nim C +Failure: reFilesDiffer FAIL: tests/shouldfail/tsortoutput.nim C Failure: reOutputsDiffer FAIL: tests/shouldfail/ttimeout.nim C