summary refs log tree commit diff stats
path: root/testament/tests/shouldfail/terrormsg.nim
diff options
context:
space:
mode:
Diffstat (limited to 'testament/tests/shouldfail/terrormsg.nim')
-rw-r--r--testament/tests/shouldfail/terrormsg.nim8
1 files changed, 8 insertions, 0 deletions
diff --git a/testament/tests/shouldfail/terrormsg.nim b/testament/tests/shouldfail/terrormsg.nim
new file mode 100644
index 000000000..6c130d107
--- /dev/null
+++ b/testament/tests/shouldfail/terrormsg.nim
@@ -0,0 +1,8 @@
+discard """
+  errormsg: "wrong error message"
+  line: 9
+  column: 6
+"""
+
+# test should fail because the line directive is wrong
+echo undeclared