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

[TDD] Kata - Dictionary replacer #77

Closed
3 tasks
fengyuanyang opened this issue Oct 18, 2020 · 2 comments · Fixed by #90
Closed
3 tasks

[TDD] Kata - Dictionary replacer #77

fengyuanyang opened this issue Oct 18, 2020 · 2 comments · Fixed by #90
Assignees
Labels
good first issue Good for newcomers hacktoberfest welcome to hacktoberfest

Comments

@fengyuanyang
Copy link
Owner

Description
A simple string replacer, replace all the strings match the Dictionary Key with Dictionary Value.

Kata-Dictionary Replacer

Tests

Given 2 parameters (String, Dictionary)
When input is ("", empty Dictionary)
Expect empty String return

When input is (“\$temp\$“, dict [“temp”, “temporary”])
Expect “temporary” return

When input is (“\$temp\$ here comes the name \$name\$“, dict [“temp”, “temporary”][“name”, “John Doe”])
Expect “temporary here comes the name John Doe” return


Additional context

Add any other context, links references or screenshots about the feature request here.

Important Checklist

  • I have written unit test first, make it red(fail first).
  • I have then written logic code, make it green(success)
  • I have tried to refactor my code, make it understandable(document my code)
@fengyuanyang fengyuanyang added good first issue Good for newcomers hacktoberfest welcome to hacktoberfest labels Oct 18, 2020
@snjazim
Copy link
Contributor

snjazim commented Oct 18, 2020

Please assign this to me.

@viren-sureja
Copy link

please assign this task to me

snjazim pushed a commit to snjazim/JavaTDD that referenced this issue Oct 20, 2020
fengyuanyang added a commit that referenced this issue Oct 22, 2020
…replacer

Issue #77 Add method and Unit test for Dictionary replacer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers hacktoberfest welcome to hacktoberfest
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants