Skip to content

Conversation

@jvonhacht
Copy link
Contributor

Add two more tests to bracket(words, symbols) function in strings/breaking_bad.py. Adding these tests results in 100% branch coverage for the function.

  • Test 1: Test to match symbols that do not exist in the word list. This should return the words without any changes made to them.

  • Test 2: Try to match two duplicate symbols. It should only encapsulate the match once ([i]), not twice ([[i]]).

@ericklarac
Copy link
Collaborator

ericklarac commented Feb 24, 2020

Tests are okay, but I think the cases should be added on the test_bracket function.

@keon
Copy link
Owner

keon commented Feb 26, 2020

@ericklarac feel free to merge yourself :)

@keon keon merged commit 5f9838d into keon:master Feb 26, 2020
@ericklarac
Copy link
Collaborator

@keon Thanks, actually I thought you have to review it.

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.

3 participants