/[webpac2]/trunk/t/2-input-pdf.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-pdf.t

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

revision 1054 by dpavlin, Tue Nov 20 09:30:56 2007 UTC revision 1117 by dpavlin, Mon Sep 22 15:34:42 2008 UTC
# Line 3  Line 3 
3  use strict;  use strict;
4  use blib;  use blib;
5    
6  use Test::More tests => 9;  use Test::More;
7    
8  BEGIN {  BEGIN {
9  use_ok( 'WebPAC::Test' );  
10  use_ok( 'WebPAC::Input' );          eval "use CAM::PDF";
11    
12            if ( $@ ) {
13                    plan skip_all => "CAM::PDF required for WebPAC::Input::PDF";
14            } else {
15                    plan tests => 11;
16            }
17    
18            use_ok( 'WebPAC::Test' );
19            use_ok( 'WebPAC::Input' );
20  }  }
21    
22  my $module = 'WebPAC::Input::PDF';  my $module = 'WebPAC::Input::PDF';
# Line 24  ok(my $db = $input->open( Line 33  ok(my $db = $input->open(
33  ), "open");  ), "open");
34  ok(my $size = $input->size, "size");  ok(my $size = $input->size, "size");
35    
36    $size = 3;
37    
38  foreach my $mfn ( 1 ... $size ) {  foreach my $mfn ( 1 ... $size ) {
39          my $rec = $input->fetch;          my $rec = $input->fetch;
40          if ($mfn <= 10 || $mfn == 20) {          if ($mfn <= 10 || $mfn == 20) {

Legend:
Removed from v.1054  
changed lines
  Added in v.1117

  ViewVC Help
Powered by ViewVC 1.1.26