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

GH-2897: Add tests for MyGetProvider #2910

Merged
merged 1 commit into from
Oct 25, 2020

Conversation

duracellko
Copy link
Contributor

@duracellko duracellko commented Oct 20, 2020

Fixes #2897 Add unit tests for MyGetProvider.

Additionally replacement of special characters was rewritten. Although original implementation (surprisingly) worked, it relied on implementation of Dictionary. Problem was that | should be replaced first, otherwise it would be replaced multiple times. However, Dictionary does not guarantee to enumerate items in the same order as they were added to the dictionary. So it was not guaranteed that | would be first token to replace.

I changed the replacement to iterate through characters of source string.

Also original code replaced [ by |['. I assume it was type and correct replacement is |[

Copy link
Member

@devlead devlead left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@devlead devlead merged commit d9ebf03 into cake-build:develop Oct 25, 2020
@devlead
Copy link
Member

devlead commented Oct 25, 2020

@duracellko your changes have been merged, thanks for your contribution 👍

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.

Add tests for MyGetProvider
3 participants