/[webpac2]/trunk/t/2-input.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/t/2-input.t

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 908 by dpavlin, Mon Oct 29 23:20:13 2007 UTC revision 909 by dpavlin, Tue Oct 30 01:46:41 2007 UTC
# Line 107  test_start_limit($input, $size, 3, 0); Line 107  test_start_limit($input, $size, 3, 0);
107  test_start_limit($input, 3, $size, $size - 2);  test_start_limit($input, 3, $size, $size - 2);
108  test_start_limit($input, 1, $size + 2, $size);  test_start_limit($input, 1, $size + 2, $size);
109    
110  ok(my $s = $input->stats, 'stats');  ok(my $s = $input->stats, "$module stats");
111  diag "stats:\n$s" if ($debug);  diag "stats:\n$s" if ($debug);
112    
113  $module = 'WebPAC::Input::MARC';  $module = 'WebPAC::Input::MARC';
114  diag "testing with $module";  diag "testing with $module";
115    
116  ok($input = new WebPAC::Input( module => $module, no_log => $no_log, no_progress_bar => 1 ), "new $module");  ok($input = new WebPAC::Input( module => $module, no_log => $no_log, no_progress_bar => 1, stats => 1 ), "new $module");
117    
118  ok($input->open( path => "$abs_path/data/marc.iso" ), "open marc.iso");  ok($input->open( path => "$abs_path/data/marc.iso" ), "open marc.iso");
119    
# Line 121  test_after_open($input); Line 121  test_after_open($input);
121    
122  test_fetch($input, $input->size);  test_fetch($input, $input->size);
123    
124    ok(my $s = $input->stats, "$module stats");
125    
126    diag "stats:\n$s" if ($debug);
127  # test modify_record  # test modify_record
128  $module = 'WebPAC::Input::Test';  $module = 'WebPAC::Input::Test';
129  ok($input = new WebPAC::Input( module => $module, no_log => $no_log, no_progress_bar => 1, debug => $debug ), "new $module");  ok($input = new WebPAC::Input( module => $module, no_log => $no_log, no_progress_bar => 1, debug => $debug ), "new $module");

Legend:
Removed from v.908  
changed lines
  Added in v.909

  ViewVC Help
Powered by ViewVC 1.1.26