Skip to content
This repository has been archived by the owner on May 25, 2023. It is now read-only.

add IPSet.Equal #127

Merged
merged 1 commit into from
Jan 29, 2021
Merged

add IPSet.Equal #127

merged 1 commit into from
Jan 29, 2021

Conversation

josharian
Copy link
Collaborator

This depends on the bug fixes in #124 for its tests to pass.

b.Add(MustParseIP("1.1.1.2"))
assertEqual(true)

a.RemoveSet(a)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This effectively zeros a. But the underlying representation contains non-empty in and out. Fixing this is in part the topic of #109 and #110 and a decision about when to minimize the representation.

@danderson
Copy link
Member

Tests are failing, but I suspect it's because of #125, which should go away if you rebase.

Signed-off-by: Josh Bleecher Snyder <[email protected]>
@josharian josharian merged commit efd3e9f into inetaf:main Jan 29, 2021
@josharian josharian deleted the josh/ipset-equal branch January 29, 2021 18:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants