splitting on an empty string returns undef, not empty string

This commit is contained in:
Colin Kuskie 2006-11-09 17:47:29 +00:00
parent ce617607a8
commit 8142321a52

View file

@ -21,7 +21,7 @@ my @tests =
['end null', ['a', 'b', ''], 'a,b,'],
['start null', ['', 'b', 'c'], ',b,c'],
['all null', ['', '', ''], ',,'],
['single null', [''], ''],
['single null', [], ''],
['escape commas', ['w,x', 'y,z'], '"w,x","y,z"'],
['escape double quotes', ['abc"def', 'ghi-jkl', 'mnop'], '"abc""def",ghi-jkl,mnop']);
plan(tests => scalar(@tests) * 2);