fixes #11764, faster hashing of (u)int (#12407)

This commit is contained in:
Miran 2019-10-15 16:31:07 +02:00 • committed by Andreas Rumpf
commit 734da9e1df
4 changed files with 14 additions and 11 deletions

View file

@ -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]()