/[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 664 by dpavlin, Fri Sep 8 14:35:31 2006 UTC revision 665 by dpavlin, Mon Sep 11 11:57:30 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 => 50;  use Test::More tests => 51;
5  use Test::Exception;  use Test::Exception;
6  use blib;  use blib;
7    
# Line 112  is_deeply( Line 112  is_deeply(
112  test_v({  test_v({
113          '903' => [ { 'a' => 0 }, { 'b' => 1 }, { 'c' => 2 }, { 'd' => 3 }, { 'e' => 4 } ]          '903' => [ { 'a' => 0 }, { 'b' => 1 }, { 'c' => 2 }, { 'd' => 3 }, { 'e' => 4 } ]
114  }, qw/field 903 subfield extra/),  }, qw/field 903 subfield extra/),
   
115  { 'd' => 1, 'e' => 1 }, 'additional fields d, e');  { 'd' => 1, 'e' => 1 }, 'additional fields d, e');
116    
117  test_v({  test_v({
# Line 134  test_v({ Line 133  test_v({
133  test_v({  test_v({
134          '905' => [ ]          '905' => [ ]
135  });  });
136    
137    test_v({
138            '900' => 'foo',
139            '901' => [ qw/foo bar baz/ ],
140            '902' => [ { 'a' => 1, 'b' => [ 1,2 ] } ],
141            '903' => [ { 'a' => [ 1, 2 ], 'c' => 1, } ],
142            '904' => [ { 'b' => 1 } ],
143            '905' => [ { 'a' => 1 } ],
144    });
145    
146    diag "errors: ",dump( $v->all_errors );
147    
148    print $v->report;

Legend:
Removed from v.664  
changed lines
  Added in v.665

  ViewVC Help
Powered by ViewVC 1.1.26