summary refs log tree commit diff stats
path: root/testament/tests/shouldfail/tsortoutput.nim
diff options
context:
space:
mode:
Diffstat (limited to 'testament/tests/shouldfail/tsortoutput.nim')
-rw-r--r--testament/tests/shouldfail/tsortoutput.nim11
1 files changed, 11 insertions, 0 deletions
diff --git a/testament/tests/shouldfail/tsortoutput.nim b/testament/tests/shouldfail/tsortoutput.nim
new file mode 100644
index 000000000..69dfbc0a0
--- /dev/null
+++ b/testament/tests/shouldfail/tsortoutput.nim
@@ -0,0 +1,11 @@
+discard """
+  sortoutput: true
+  output: '''
+2
+1
+'''
+"""
+
+# this test should ensure that the output is actually sorted
+echo "2"
+echo "1"