summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorMiran <narimiran@disroot.org>2019-10-15 16:31:07 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-10-15 16:31:07 +0200
commit734da9e1dfdd5cb441a5c1461539f10ab331596a (patch)
treeff80c11ffd6d524a993eeacaf207be21ce306005 /tests
parent5f5ac8ce1616c7a68002b99ba4ffc36ab3a3ec42 (diff)
downloadNim-734da9e1dfdd5cb441a5c1461539f10ab331596a.tar.gz
fixes #11764, faster hashing of (u)int (#12407)
Diffstat (limited to 'tests')
-rw-r--r--tests/collections/ttables.nim4
-rw-r--r--tests/collections/ttablesthreads.nim2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/collections/ttables.nim b/tests/collections/ttables.nim
index 0a5a01367..9eccf345a 100644
--- a/tests/collections/ttables.nim
+++ b/tests/collections/ttables.nim
@@ -233,7 +233,7 @@ block tablesref:
       for y in 0..1:
         assert t[(x,y)] == $x & $y
     assert($t ==
-      "{(x: 0, y: 1): \"01\", (x: 0, y: 0): \"00\", (x: 1, y: 0): \"10\", (x: 1, y: 1): \"11\"}")
+      "{(x: 1, y: 1): \"11\", (x: 0, y: 0): \"00\", (x: 0, y: 1): \"01\", (x: 1, y: 0): \"10\"}")
 
   block tableTest2:
     var t = newTable[string, float]()
@@ -340,7 +340,7 @@ block tablesref:
   block anonZipTest:
     let keys = @['a','b','c']
     let values = @[1, 2, 3]
-    doAssert "{'a': 1, 'b': 2, 'c': 3}" == $ toTable zip(keys, values)
+    doAssert "{'c': 3, 'a': 1, 'b': 2}" == $ toTable zip(keys, values)
 
   block clearTableTest:
     var t = newTable[string, float]()
diff --git a/tests/collections/ttablesthreads.nim b/tests/collections/ttablesthreads.nim
index 7fe4c79b1..5553b31ef 100644
--- a/tests/collections/ttablesthreads.nim
+++ b/tests/collections/ttablesthreads.nim
@@ -48,7 +48,7 @@ block tableTest1:
     for y in 0..1:
       assert t[(x,y)] == $x & $y
   assert($t ==
-    "{(x: 0, y: 1): \"01\", (x: 0, y: 0): \"00\", (x: 1, y: 0): \"10\", (x: 1, y: 1): \"11\"}")
+    "{(x: 1, y: 1): \"11\", (x: 0, y: 0): \"00\", (x: 0, y: 1): \"01\", (x: 1, y: 0): \"10\"}")
 
 block tableTest2:
   var t = initTable[string, float]()