X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/dcd6ce29ba0d7318c16b08c237ec0247b59a571d..61a56da0c549380aeaa9d3c04ea8ba56145444b7:/t/helper/csv.t diff --git a/t/helper/csv.t b/t/helper/csv.t index e54dcb6fc..d4a157199 100644 --- a/t/helper/csv.t +++ b/t/helper/csv.t @@ -1,4 +1,4 @@ -use Test::More tests => 36; +use Test::More tests => 37; use SL::Dispatcher; use Data::Dumper; use utf8; @@ -264,5 +264,14 @@ $csv->parse; is_deeply( ($csv->errors)[0], [ 'description', undef, 'header field \'description\' is not recognized', undef, 0 ], 'strict_profile without ignore_columns throws error'); +##### + +$csv = SL::Helper::Csv->new( + file => \"Kaffee", + header => [ 'description' ], + class => 'SL::DB::Part', +); +$csv->parse; +is_deeply $csv->get_data, [ { description => 'Kaffee' } ], 'eol bug at the end of files'; # vim: ft=perl