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

fix: Make StringMap.Merge, StringMap.Without always return a new map, as documented. #71

Merged
merged 3 commits into from
Aug 30, 2021

Conversation

rudo-thomas
Copy link
Contributor

@rudo-thomas rudo-thomas commented Aug 26, 2021

Previously:

  • StringMap.Merge(nil, x) would return the x, not a new map
  • StringMap.Without(x, nil) would return the x, not the new map -- when x itself was not nil.

Improve the tests to catch this.

While at it, clarify and fix some of the docstrings.

make e2e-tests passes.

Previously, StringMap.Merge(nil, x) would return x, not a new map.

Improve the tests to catch this.

While at it, clarify and fix some of the docstrings.
@rudo-thomas rudo-thomas requested a review from FUSAKLA August 26, 2021 12:14
@rudo-thomas rudo-thomas force-pushed the rudo-fix-stringmap-merge branch from 8d6b2a2 to c26b0d7 Compare August 26, 2021 12:16
Copy link
Contributor

@FUSAKLA FUSAKLA left a comment

Choose a reason for hiding this comment

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

👍

Have you tried running the e2e tests, if it does not break anything?

@rudo-thomas rudo-thomas changed the title fix: Make StringMap.Merge always return a new map, as documented. fix: Make StringMap.Merge, StringMap.Without always return a new map, as documented. Aug 26, 2021
@rudo-thomas
Copy link
Contributor Author

Have you tried running the e2e tests, if it does not break anything?

Yes.

I've also caught this in StringMap.Without, PTAL @FUSAKLA .

@rudo-thomas rudo-thomas requested a review from FUSAKLA August 30, 2021 09:21
@FUSAKLA
Copy link
Contributor

FUSAKLA commented Aug 30, 2021

Still 👍

@rudo-thomas rudo-thomas merged commit 2291a35 into master Aug 30, 2021
@rudo-thomas rudo-thomas deleted the rudo-fix-stringmap-merge branch August 30, 2021 10:21
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