summary refs log tree commit diff stats
path: root/tests/stdlib/tsortcall.nim
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2018-11-15 01:57:02 +0100
committerAraq <rumpf_a@web.de>2018-11-23 11:58:28 +0100
commit9c2365d5c2229f327d19262894995047a357e252 (patch)
treeac6d99d9e65afe900d36095b266212fcd262d18b /tests/stdlib/tsortcall.nim
parente012eb100109d343b7cdbe2598d439d84eda7830 (diff)
downloadNim-9c2365d5c2229f327d19262894995047a357e252.tar.gz
activated more tests, allow input in test spec
Diffstat (limited to 'tests/stdlib/tsortcall.nim')
-rw-r--r--tests/stdlib/tsortcall.nim6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/stdlib/tsortcall.nim b/tests/stdlib/tsortcall.nim
index 45b98805f..242e3fe4c 100644
--- a/tests/stdlib/tsortcall.nim
+++ b/tests/stdlib/tsortcall.nim
@@ -1,3 +1,7 @@
+discard """
+outputsub: ""
+"""
+
 import algorithm
 import unittest
 
@@ -40,7 +44,7 @@ suite "test sort, sorted, and isSorted procs":
   test "test the shortcut versions with descending sort order":
     check(not unSortedIntSeq.isSorted(SortOrder.Descending))
     check sorted(unSortedIntSeq, SortOrder.Descending) == reversed sortedIntSeq
-    check sorted(unSortedIntSeq).isSorted(SortOrder.Descending)
+    check sorted(unSortedIntSeq).isSorted(SortOrder.Ascending)
 
     unSortedIntSeq.sort(SortOrder.Descending)
     check unSortedIntSeq == reversed sortedIntSeq