Skip to content

rectangles: Change empty string test cases into empty list#263

Closed
monzee wants to merge 2 commits intoexercism:masterfrom
monzee:master
Closed

rectangles: Change empty string test cases into empty list#263
monzee wants to merge 2 commits intoexercism:masterfrom
monzee:master

Conversation

@monzee
Copy link

@monzee monzee commented Nov 29, 2015

The test cases with strings as input make no sense in this exercise as there is no happy path at all for just strings. All inputs are expected to be lists of strings. If one practices TDD, these cases would make one start off the wrong foot (especially since these are at the top) writing handlers for strings.

Also included in this PR are minor changes in the example solution. I didn't really mean to include this but I don't know how to split it off.

@behrtam
Copy link
Contributor

behrtam commented Nov 29, 2015

$ git reset HEAD^ --hard
$ git push -f

That should delete the last commit. You should probably save it first, so you can submit it in a second pr.
I really like your work in the example.py especially the application of next().

@monzee
Copy link
Author

monzee commented Nov 29, 2015

Alright, I'm withdrawing this and will try again tomorrow.

@monzee monzee closed this Nov 29, 2015
@kytrinyx
Copy link
Member

@monzee for fututre reference, if you do a git push -f it updates the existing pull request which lets you change the existing PR from the ground up rather than closing and reopening a new one.

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