sync test with new data
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 7 Jul 2006 21:07:44 +0000 (21:07 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 7 Jul 2006 21:07:44 +0000 (21:07 +0000)
git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@49 4670fa4d-42ec-0310-ab5b-a66af6943492

t/002_isis.t

index df6704e..c4d8a17 100755 (executable)
@@ -3,11 +3,9 @@
 use strict;
 use blib;
 
-use Test::More tests => 110;
+use Test::More tests => 112;
 use File::Spec;
 
-my $emulate_dump = 0;
-
 BEGIN {
        use_ok( 'Biblio::Isis' );
        eval "use Data::Dump";
@@ -103,8 +101,9 @@ sub test_data {
                '10' => [ '^a0-340-59691-0' ],
        }, {
                # identifier test
-               '225' => [ '1#^aMcGraw-Hill series in Psychology' ],
                '200' => [ '1#^aPsychology^fCamille B. Wortman, Elizabeth F. Loftus, Mary E. Marshal' ],
+               225 => ["1#^aMcGraw-Hill series in Psychology"],
+               205 => ["^a4th ed"],
        } ];
                
        foreach my $mfn (1 .. $isis->count) {
@@ -119,7 +118,8 @@ sub test_data {
                        my $i = 0;
                        foreach my $v (@{$data->[$mfn-1]->{$f}}) {
                                $v =~ s/^[01# ][01# ]// if ($args->{no_ident});
-                               cmp_ok($v, 'eq', $rec->{$f}->[$i], "MFN $mfn $f:$i $v");
+                               diag "compare '", $rec->{$f}->[$i], "' eq '$v'" if ($debug);
+                               cmp_ok($rec->{$f}->[$i], 'eq', $v, "MFN $mfn field: $f offset: $i");
                                $i++;
                        }
                }
@@ -155,7 +155,7 @@ test_data(
                4fb38537a94f3f5954e40d9536b942b0
                579a7c6901c654bdeac10547a98e5b71
                7d2adf1675c83283aa9b82bf343e3d85
-               daf2cf86ca7e188e8360a185f3b43423
+               4cc1f798bbcf36862f7aa78c3410801a
        ) ],
 );