Skip to content

word-count: Add more tests with punctuation#419

Merged
rbasso merged 1 commit intoexercism:masterfrom
petertseng:word-count
Nov 8, 2016
Merged

word-count: Add more tests with punctuation#419
rbasso merged 1 commit intoexercism:masterfrom
petertseng:word-count

Conversation

@petertseng
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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