Skip to content

Handle "" properly in ListConverter. #756

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

Merged
merged 1 commit into from
Aug 29, 2014

Conversation

cykl
Copy link
Contributor

@cykl cykl commented Aug 1, 2014

When an empty string is passed it should return an empty list rather than a list of one empty string.

I believe that the proposed behaviour is more useful than the current. The converter can be used to easily specify a variable number of arguments in a column. Users most likely want to be able to specify no elements at all.

Does this change sound reasonable ?

PS: I decided to return a new ArralyList rather than an empty collection from Collections because I expect that some users mutate the list in their Step def.

When an empty string is passed it should return an empty list rather than a
list of one empty string.
aslakhellesoy added a commit that referenced this pull request Aug 29, 2014
@aslakhellesoy aslakhellesoy merged commit b32f59a into cucumber:master Aug 29, 2014
@aslakhellesoy
Copy link
Contributor

Merci @cykl !

@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants