New probe seq swaps 1st two keys. Fix in cmp.

This commit is contained in:
Charles Blake
2015-02-13 08:50:26 -05:00
parent 45a2c1b1d1
commit 39b98fede3

View File

@@ -47,7 +47,7 @@ block tableTest1:
for y in 0..1:
assert t[(x,y)] == $x & $y
assert($t ==
"{(x: 0, y: 0): 00, (x: 0, y: 1): 01, (x: 1, y: 0): 10, (x: 1, y: 1): 11}")
"{(x: 0, y: 1): 01, (x: 0, y: 0): 00, (x: 1, y: 0): 10, (x: 1, y: 1): 11}")
block tableTest2:
var t = initTable[string, float]()