Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9b731b3b1f
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (17 sloc) 0.463 kb
use v6;
use Test;
use Text::CSV;
is_deeply Text::CSV.parse(q[[[foo,bar,baz
foo,bar , baz
foo,bar , baz]]]),
[ [<foo bar baz>],
['foo', 'bar ', ' baz'],
['foo', 'bar ', ' baz'] ],
'spaces are not trimmed by default';
is_deeply Text::CSV.parse(q[[[foo,bar,baz
foo,bar , baz
foo,bar , baz]]], :trim),
[ [<foo bar baz>] xx 3 ],
'spaces are trimmed when :trim is passed';
done;
# vim:ft=perl6
Jump to Line
Something went wrong with that request. Please try again.