activated more tests, allow input in test spec

This commit is contained in:
Arne Döring 2018-11-15 01:57:02 +01:00 • committed by Araq
commit 9c2365d5c2
26 changed files with 223 additions and 124 deletions

View file

@ -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