activated more tests, allow input in test spec
This commit is contained in:
parent
e012eb1001
commit
9c2365d5c2
26 changed files with 223 additions and 124 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue