--- trunk/t/6-unit.t 2005/12/15 17:01:04 252 +++ trunk/t/6-unit.t 2006/01/07 18:23:27 352 @@ -11,7 +11,7 @@ BEGIN { use_ok( 'WebPAC::Lookup' ); -use_ok( 'WebPAC::Input::ISIS' ); +use_ok( 'WebPAC::Input' ); use_ok( 'WebPAC::Store' ); use_ok( 'WebPAC::Normalize::XML' ); use_ok( 'WebPAC::Output::TT' ); @@ -30,13 +30,14 @@ lookup_file => "$abs_path../conf/lookup/isis.pm", ), "new Lookup"); -ok(my $isis = new WebPAC::Input::ISIS( +ok(my $isis = new WebPAC::Input( + module => 'WebPAC::Input::ISIS', code_page => 'ISO-8859-2', # application encoding - limit_mfn => 10, + limit => 10, ), "new Input::ISIS"); ok(my $maxmfn = $isis->open( - filename => $isis_file, + path => $isis_file, code_page => '852', # database encoding lookup => $lookup, ), "Input::ISIS->open"); @@ -78,6 +79,6 @@ $html =~ s#\s*[\n\r]+\s*##gs; - diag $html; + #diag $html; };