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

Adapt String.words to handle blank text in a more standard way. #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jbrains
Copy link

@jbrains jbrains commented Jun 15, 2020

I propose providing a function for words that answers [] for blank text, because there are no words in a blank piece of text and because the empty string is, by common understanding, not a word.

I don't like the way I wrote the test, because I couldn't figure out how to fuzz a non-blank multiline string. I'd be very happy to take your suggestions about how to do that.

Since this is my first contribution, I don't know what I might have done that goes against house conventions. Just tell me what you need me to change, if anything.

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.

1 participant