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

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

revision 1125 by dpavlin, Sun Apr 19 23:35:31 2009 UTC revision 1126 by dpavlin, Mon Apr 20 13:44:40 2009 UTC
# Line 3  Line 3 
3  use strict;  use strict;
4  use blib;  use blib;
5    
6  use Test::More tests => 63;  use Test::More tests => 48;
7    
8  BEGIN {  BEGIN {
9  use_ok( 'WebPAC::Test' );  use_ok( 'WebPAC::Test' );
# Line 23  ok(my $db = $input->open( Line 23  ok(my $db = $input->open(
23          path => "$abs_path/data/ovid-cites.txt"          path => "$abs_path/data/ovid-cites.txt"
24  ), "open");  ), "open");
25  ok(my $size = $input->size, "size");  ok(my $size = $input->size, "size");
26  cmp_ok( $size, '==', 95, 'size ok' );  cmp_ok( $size, '==', 14, 'size ok' );
27    
28  foreach my $mfn ( 1 ... $size ) {  foreach my $mfn ( 1 ... $size ) {
29          my $rec = $input->fetch;          my $rec = $input->fetch;

Legend:
Removed from v.1125  
changed lines
  Added in v.1126

  ViewVC Help
Powered by ViewVC 1.1.26