/[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 767 by dpavlin, Mon Sep 11 14:29:08 2006 UTC revision 768 by dpavlin, Fri Nov 3 19:41:28 2006 UTC
# Line 37  is_deeply( $v->{rules}, { Line 37  is_deeply( $v->{rules}, {
37    
38    
39    
40  throws_ok { $v->validate_errors() } qr/rec/, "validate_rec need rec";  throws_ok { $v->validate_rec() } qr/rec/, "validate_rec need rec";
41    
42  sub test_v {  sub test_v {
43          my $row = shift || die "no row?";          my $row = shift || die "no row?";
# Line 47  sub test_v { Line 47  sub test_v {
47          $row->{'000'} = [ 42 ];          $row->{'000'} = [ 42 ];
48    
49          $v->reset_errors;          $v->reset_errors;
50          my $e = $v->validate_errors( $row );          my $e = $v->validate_rec( $row );
51    
52          diag "validate $d\n",dump($e) if ($debug);          diag "validate $d\n",dump($e) if ($debug);
53    

Legend:
Removed from v.767  
changed lines
  Added in v.768

  ViewVC Help
Powered by ViewVC 1.1.26