Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it safe to compare with reflect.DeepEqual? #39

Open
derelbenkoenig opened this issue May 3, 2024 · 0 comments
Open

Is it safe to compare with reflect.DeepEqual? #39

derelbenkoenig opened this issue May 3, 2024 · 0 comments

Comments

@derelbenkoenig
Copy link

If I had two OrderedMaps, which contain the same elements with the same insertion order, but which were created by different sequences of actions, then those should be equal in an abstract sense. But will they actually have the same underlying data structure?

For example if one was created by inserting 1, 2, and 4; and another was created by inserting 1, 2, 3, and 4, then removing 3, or by inserting 1,4, and 2, and then using MoveBefore to put 2 before 4.

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

No branches or pull requests

1 participant