/[Search-Estraier]/trunk/t/2_Condition.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/2_Condition.t

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

revision 187 by dpavlin, Sun Aug 6 18:15:11 2006 UTC revision 188 by dpavlin, Sun Nov 5 16:08:08 2006 UTC
# Line 3  Line 3 
3  use strict;  use strict;
4  use blib;  use blib;
5    
6  use Test::More tests => 32;  use Test::More tests => 34;
7  use Test::Exception;  use Test::Exception;
8  #use Data::Dumper;  #use Data::Dumper;
9    
# Line 49  cmp_ok($cond->attrs, '==', 1, 'one attrs Line 49  cmp_ok($cond->attrs, '==', 1, 'one attrs
49  ok($cond->add_attr('@foo2 BAR2 baz2'), 'set_attr');  ok($cond->add_attr('@foo2 BAR2 baz2'), 'set_attr');
50  #diag "attrs: ",join(",",$cond->attrs);  #diag "attrs: ",join(",",$cond->attrs);
51  cmp_ok($cond->attrs, '==', 2, 'two attrs');  cmp_ok($cond->attrs, '==', 2, 'two attrs');
52    
53    ok($cond->set_distinct('@foo'), 'set_distinct');
54    cmp_ok($cond->distinct, 'eq', '@foo', 'distinct');

Legend:
Removed from v.187  
changed lines
  Added in v.188

  ViewVC Help
Powered by ViewVC 1.1.26