splitting on an empty string returns undef, not empty string
This commit is contained in:
parent
ce617607a8
commit
8142321a52
1 changed files with 1 additions and 1 deletions
2
t/Text.t
2
t/Text.t
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue