Closed sampatbadhe closed 2 years ago
@ericgpks Do you want to work on this?
@kou @ericgpks I'd be happy to help here if you could help me with expectations.
"None" is the expectation.
@kou @ericgpks I have made the changes in https://github.com/ruby/csv/pull/235 please review.
Thanks a lot. I will check the pr.
Fixed by #235.
I am adding test cases for recent changes for
limit
option added toto_csv
method in https://github.com/ruby/csv/pull/229When the limit is negative and greater than the row size then
to_csv
throwsArgumentError: negative array size
In above case, either it should return all the rows by setting
limit to row size
OR none(just headers when write_headers is true) by settinglimit to zero
.