summary refs log tree commit diff stats
path: root/tests/collections
diff options
context:
space:
mode:
Diffstat (limited to 'tests/collections')
-rw-r--r--tests/collections/ttables.nim5
-rw-r--r--tests/collections/ttablesthreads.nim4
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 = {