X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=t%2F6-unit.t;h=bc4b9449a9d9dc697b369eaa06a0088838719e24;hb=01091188dac765b18d9fb9bd84cad20ee4bd3e95;hp=ab27783362f60cfef6790b9b6f866b6f6b5cb5a5;hpb=2631edba4bc458cfc69d3a3fe4025709c7897054;p=webpac2 diff --git a/t/6-unit.t b/t/6-unit.t index ab27783..bc4b944 100755 --- a/t/6-unit.t +++ b/t/6-unit.t @@ -9,7 +9,7 @@ use File::Temp qw/tempdir/; use File::Slurp; use Data::Dump qw/dump/; use Time::HiRes qw/time/; -use blib; +use lib 'lib'; my $debug = shift @ARGV; @@ -39,14 +39,13 @@ my $lookup_file = "$abs_path../conf/lookup/isis.pm"; ok(my $isis = new WebPAC::Input( module => 'WebPAC::Input::ISIS', - code_page => 'ISO-8859-2', # application encoding limit => 100, no_progress_bar => 1, ), "new Input::ISIS"); ok(my $maxmfn = $isis->open( path => $isis_file, - code_page => 'cp852', # database encoding + input_encoding => 'cp852', # database encoding lookup_coderef => sub { my $rec = shift || return; ok($rec, 'lookup_coderef has rec');