/[webpac2]/trunk/t/1-validate.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/1-validate.t

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

revision 654 by dpavlin, Thu Sep 7 16:41:08 2006 UTC revision 655 by dpavlin, Thu Sep 7 16:54:47 2006 UTC
# Line 1  Line 1 
1  #!/usr/bin/perl -w  #!/usr/bin/perl -w
2    
3  use strict;  use strict;
4  use Test::More tests => 36;  use Test::More tests => 43;
5  use Test::Exception;  use Test::Exception;
6  use blib;  use blib;
7    
# Line 106  test_v({ Line 106  test_v({
106          '903' => [ { 'a' => 0 }, { 'b' => 1 }, { 'c' => 2 }, { 'd' => 3 } ]          '903' => [ { 'a' => 0 }, { 'b' => 1 }, { 'c' => 2 }, { 'd' => 3 } ]
107  }, qw/field 903 subfield extra d/);  }, qw/field 903 subfield extra d/);
108    
109    is_deeply(
110    
111  test_v({  test_v({
112          '903' => [ { 'a' => 0 }, { 'b' => 1 }, { 'c' => 2 }, { 'd' => 3 }, { 'e' => 4 } ]          '903' => [ { 'a' => 0 }, { 'b' => 1 }, { 'c' => 2 }, { 'd' => 3 }, { 'e' => 4 } ]
113  }, qw/field 903 subfield extra/);  }, qw/field 903 subfield extra/),
114    
115    { 'd' => 1, 'e' => 1 }, 'additional fields d, e');
116    
117    test_v({
118            '904' => [ { 'a' => 1, } ]
119    });
120    
121    test_v({
122            '904' => [ { 'b' => 1 } ]
123    }, qw/field 904 subfield extra b/);
124    
 #test_v({  
 #       '904' => [ { 'b' => 1 } ]  
 #}, qw/field 904 subfield b extra/);  

Legend:
Removed from v.654  
changed lines
  Added in v.655

  ViewVC Help
Powered by ViewVC 1.1.26