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

@ -1019,9 +1019,9 @@ when isMainModule and not defined(release):
# --> {1, 3, 5}
block toSeqAndString:
var a = toHashSet([2, 4, 5])
var a = toHashSet([2, 7, 5])
var b = initHashSet[int]()
for x in [2, 4, 5]: b.incl(x)
for x in [2, 7, 5]: b.incl(x)
assert($a == $b)
#echo a
#echo toHashSet(["no", "esc'aping", "is \" provided"])