X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/6b378ca7ca0e5fc0933ea90fc66a45d7440b08f7..e14cb525c640cb15bb6b2dfb62ccebbe78cb45cd:/t/helper/csv.t?ds=sidebyside diff --git a/t/helper/csv.t b/t/helper/csv.t index 4e7ef121c..63fc858c9 100644 --- a/t/helper/csv.t +++ b/t/helper/csv.t @@ -1,4 +1,4 @@ -use Test::More tests => 40; +use Test::More tests => 41; use lib 't'; @@ -285,11 +285,21 @@ is_deeply $csv->get_data, [ { description => 'Kaffee' } ], 'case insensitive hea ##### $csv = SL::Helper::Csv->new( - file => \"Kaffee", - header => [ 'Description' ], - class => 'SL::DB::Part', +file => \"Kaffee", +header => [ 'Description' ], +class => 'SL::DB::Part', ); $csv->parse; is_deeply $csv->get_data, [ { description => 'Kaffee' } ], 'case insensitive header as param works'; +##### + +$csv = SL::Helper::Csv->new( + file => \"\x{FEFF}description\nKaffee", + class => 'SL::DB::Part', + encoding => 'utf8', +); +$csv->parse; +is_deeply $csv->get_data, [ { description => 'Kaffee' } ], 'utf8 BOM works (bug 1872)'; + # vim: ft=perl