diff options
author | Clyybber <darkmine956@gmail.com> | 2020-02-19 23:02:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-19 23:02:08 +0100 |
commit | 87dd19453b9a9aeded5f85714e90e12fc8bab0bf (patch) | |
tree | f8b75ccdfad7bf1b1ed2b821451804c02609b826 /tests/collections | |
parent | 8c22518d673cf792fa064d2d561d1c6f03b823bb (diff) | |
download | Nim-87dd19453b9a9aeded5f85714e90e12fc8bab0bf.tar.gz |
Remove testutils (#13435) [backport]
Diffstat (limited to 'tests/collections')
-rw-r--r-- | tests/collections/ttables.nim | 5 | ||||
-rw-r--r-- | tests/collections/ttablesthreads.nim | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/tests/collections/ttables.nim b/tests/collections/ttables.nim index 7459b3f13..bba95c1f1 100644 --- a/tests/collections/ttables.nim +++ b/tests/collections/ttables.nim @@ -8,7 +8,10 @@ And we get here ''' joinable: false """ -import hashes, sequtils, tables, algorithm, testutils +import hashes, sequtils, tables, algorithm + +proc sortedPairs[T](t: T): auto = toSeq(t.pairs).sorted +template sortedItems(t: untyped): untyped = sorted(toSeq(t)) block tableDollar: # other tests should use `sortedPairs` to be robust to future table/hash diff --git a/tests/collections/ttablesthreads.nim b/tests/collections/ttablesthreads.nim index 757a8cebe..9f7d77719 100644 --- a/tests/collections/ttablesthreads.nim +++ b/tests/collections/ttablesthreads.nim @@ -3,7 +3,9 @@ discard """ output: '''true''' """ -import hashes, tables, sharedtables, testutils +import hashes, tables, sharedtables, algorithm, sequtils + +proc sortedPairs[T](t: T): auto = toSeq(t.pairs).sorted const data = { |