/[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 862 by dpavlin, Sun May 27 19:28:18 2007 UTC revision 906 by dpavlin, Mon Oct 29 22:49:46 2007 UTC
# Line 23  ok(my $v = new WebPAC::Validate( Line 23  ok(my $v = new WebPAC::Validate(
23    
24  ok( ! $v->{rules}, 'no path' );  ok( ! $v->{rules}, 'no path' );
25    
26  ok(my $v = new WebPAC::Validate(  ok($v = new WebPAC::Validate(
27          path => "$abs_path/data/validate_test",          path => "$abs_path/data/validate_test",
28          debug => $debug,          debug => $debug,
29  ), "new with path");  ), "new with path");
# Line 163  test_v({ Line 163  test_v({
163    
164  my $expected_error = {  my $expected_error = {
165     900 => { not_repeatable => "probably bug in parsing input data" },     900 => { not_repeatable => "probably bug in parsing input data" },
166     901 => { missing_subfield => "a required" },     901 => { missing_subfield => "a required", "dump" => "baz" },
167     902 => {     902 => {
168              "dump"   => "^a1^b1^b2",              "dump"   => "^a1^b1^b2",
169              subfield => { extra => { a => 1 }, extra_repeatable => { b => 1 } },              subfield => { extra => { a => 1 }, extra_repeatable => { b => 1 } },

Legend:
Removed from v.862  
changed lines
  Added in v.906

  ViewVC Help
Powered by ViewVC 1.1.26