diff options
author | Lolo Iccl <oxisccl@gmail.com> | 2018-05-08 22:09:37 +0900 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-05-09 17:41:41 +0200 |
commit | af591544c59e9b05e539f4583f1143776bb8a9e4 (patch) | |
tree | 87dd5fbad4a3ad3e2dcb12dfcef22f0f38c456ec /tests | |
parent | 5c7b66e07a3811b3fa0b8e7bbfe4cf25a6361d3a (diff) | |
download | Nim-af591544c59e9b05e539f4583f1143776bb8a9e4.tar.gz |
Modify hash for HashSet to use `xor` to mix hash of items.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/collections/tsets.nim | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/collections/tsets.nim b/tests/collections/tsets.nim index be624ffe8..61e14260a 100644 --- a/tests/collections/tsets.nim +++ b/tests/collections/tsets.nim @@ -85,10 +85,6 @@ block hashForHashedSet: var hashSeq: seq[Hash] = @[] doAssert s1 == s2 doAssert hash(s1) == hash(s2) - for c in seq1: - if (not (hash(c) in hashSeq)): - hashSeq.add(hash(c)) - doAssert hash(s1) == hash(sorted(hashSeq, cmp[Hash])) block hashForOrderdSet: let |