Skip to content

word-count: Add more tests with punctuation #419

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

Merged
merged 1 commit into from
Nov 8, 2016
Merged

word-count: Add more tests with punctuation #419

merged 1 commit into from
Nov 8, 2016

Conversation

petertseng
Copy link
Member

@petertseng petertseng commented Nov 6, 2016

Added in exercism/problem-specifications#403


discussion before merging:

These new tests seem to raise difficulty slightly because now we need to be sensitive to the difference between ' as an apostrophe versus used as single quotes. I expect the example solution to need fixing, and I might bump the difficulty to 5 based on what I see.

@petertseng
Copy link
Member Author

Right, wordsBy isn't going to work now, since we now need to know the characters surrounding a '.

All right, I'm probably not going to have time to work on this soon, so if nobody has an idea to deal with the new tests maybe it's better to create an issue

@petertseng
Copy link
Member Author

An idea I will work on soon: wordsBy (\c -> isAlphaNum c || c == '\''), then strip all leading and trailing ' from the words.

Added in exercism/problem-specifications#403

This bumps up the difficulty from 4 to 5.
@petertseng
Copy link
Member Author

Okay, here's something that seems to work OK. I really think I should bump difficulty to 5 for this, so I did it.

Copy link
Contributor

@rbasso rbasso left a comment

Choose a reason for hiding this comment

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

Seems great! I think it deserves the 5 you gave to it.

@rbasso rbasso merged commit 37f694e into exercism:master Nov 8, 2016
@petertseng petertseng deleted the word-count branch November 8, 2016 05:36
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