projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Sorted-Controller-Helper: Hilfsfunktion für ReportGenerator
[kivitendo-erp.git]
/
t
/
helper
/
csv.t
diff --git
a/t/helper/csv.t
b/t/helper/csv.t
index
4e7ef12
..
63fc858
100644
(file)
--- a/
t/helper/csv.t
+++ b/
t/helper/csv.t
@@
-1,4
+1,4
@@
-use Test::More tests => 4
0
;
+use Test::More tests => 4
1
;
use lib 't';
use lib 't';
@@
-285,11
+285,21
@@
is_deeply $csv->get_data, [ { description => 'Kaffee' } ], 'case insensitive hea
#####
$csv = SL::Helper::Csv->new(
#####
$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->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
# vim: ft=perl