Skip to content

Conversation

benrimmington
Copy link
Contributor

This pull request reuses the TestKeyTy from the local getKey(_:) function,
which has a separately randomized hashValue.

Previously, SetTestSuite.test("deleteChainCollisionRandomized") created a
different key, i.e. s.insert(TestKeyTy(key.value)) versus s.remove(key).

Compare with DictionaryTestSuite.test("deleteChainCollisionRandomized"),
which uses the same key for both insertion and removal, i.e. d[key] = ...

Follow-up to #16650 (comment)

Cc: @lorentey

@lorentey
Copy link
Member

@swift-ci please test

@lorentey
Copy link
Member

Thank you for picking up on this! 👏

@lorentey lorentey merged commit 65b4f12 into swiftlang:master Sep 28, 2018
@benrimmington benrimmington deleted the delete-chain-collision-randomized branch September 28, 2018 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants