Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Treeify algorithm should raise ArgumentError when passed nil or empty string #47

Merged
merged 1 commit into from
Oct 26, 2016

Conversation

mjgiarlo
Copy link
Member

No description provided.

Copy link
Contributor

@carolyncole carolyncole left a comment

Choose a reason for hiding this comment

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

Will fix the errors in Sufia

@jcoyne
Copy link
Member

jcoyne commented Oct 26, 2016

I think there are places that Sufia is using this code incorrectly. It should be getting errors, but it should get ArgumentError rather than NoMethodError. You should not pass an empty string to treeify.

@mjgiarlo mjgiarlo force-pushed the handle_empty_strings branch from 49fd7ea to 6476d99 Compare October 26, 2016 18:52
@mjgiarlo mjgiarlo force-pushed the handle_empty_strings branch from 6476d99 to a9e0511 Compare October 26, 2016 18:55
@mjgiarlo mjgiarlo changed the title New treeify algorithm changes behavior with empty strings. Restore old behavior. Treeify algorithm should raise ArgumentError when passed nil or empty string Oct 26, 2016
@mjgiarlo mjgiarlo merged commit 84d1ab8 into master Oct 26, 2016
@mjgiarlo mjgiarlo deleted the handle_empty_strings branch October 26, 2016 19:11
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants