summary refs log tree commit diff stats
path: root/testament/tests/shouldfail/tnimoutfull.nim
diff options
context:
space:
mode:
Diffstat (limited to 'testament/tests/shouldfail/tnimoutfull.nim')
-rw-r--r--testament/tests/shouldfail/tnimoutfull.nim14
1 files changed, 14 insertions, 0 deletions
diff --git a/testament/tests/shouldfail/tnimoutfull.nim b/testament/tests/shouldfail/tnimoutfull.nim
new file mode 100644
index 000000000..4fc93f6d2
--- /dev/null
+++ b/testament/tests/shouldfail/tnimoutfull.nim
@@ -0,0 +1,14 @@
+discard """
+  nimout: '''
+msg1
+msg2
+'''
+  action: compile
+  nimoutFull: true
+"""
+
+# should fail because `msg3` is not in nimout and `nimoutFill: true` was given
+static:
+  echo "msg1"
+  echo "msg2"
+  echo "msg3"