From 87dd19453b9a9aeded5f85714e90e12fc8bab0bf Mon Sep 17 00:00:00 2001 From: Clyybber Date: Wed, 19 Feb 2020 23:02:08 +0100 Subject: Remove testutils (#13435) [backport] --- tests/collections/ttables.nim | 5 ++++- tests/collections/ttablesthreads.nim | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'tests/collections') 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 = { -- cgit 1.4.1-2-gfad0