/[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 658 by dpavlin, Thu Sep 7 16:54:47 2006 UTC revision 659 by dpavlin, Fri Sep 8 14:35:31 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 => 43;  use Test::More tests => 50;
5  use Test::Exception;  use Test::Exception;
6  use blib;  use blib;
7    
# Line 31  is_deeply( $v->{rules}, { Line 31  is_deeply( $v->{rules}, {
31          '902' => [ 'b', 'c' ],          '902' => [ 'b', 'c' ],
32          '903' => [ 'a', 'b', 'c' ],          '903' => [ 'a', 'b', 'c' ],
33          '904' => [ 'a' ],          '904' => [ 'a' ],
34            '905' => [ 'a*' ],
35  }, 'rules parsed');  }, 'rules parsed');
36    
37    
# Line 122  test_v({ Line 123  test_v({
123          '904' => [ { 'b' => 1 } ]          '904' => [ { 'b' => 1 } ]
124  }, qw/field 904 subfield extra b/);  }, qw/field 904 subfield extra b/);
125    
126    test_v({
127            '904' => [ { 'a' => [ 1,2 ] } ]
128    }, qw/field 904 subfield extra_repeatable a/);
129    
130    test_v({
131            '905' => [ { 'a' => [ 1,2 ] } ]
132    });
133    
134    test_v({
135            '905' => [ ]
136    });

Legend:
Removed from v.658  
changed lines
  Added in v.659

  ViewVC Help
Powered by ViewVC 1.1.26