/[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 172 by dpavlin, Sat Jan 28 19:18:13 2006 UTC revision 173 by dpavlin, Sun Aug 6 18:15:11 2006 UTC
# Line 3  Line 3 
3  use strict;  use strict;
4  use blib;  use blib;
5    
6  use Test::More tests => 31;  use Test::More tests => 32;
7  use Test::Exception;  use Test::Exception;
8  #use Data::Dumper;  #use Data::Dumper;
9    
# Line 37  throws_ok { $cond->set_options('foo') } Line 37  throws_ok { $cond->set_options('foo') }
37    
38  cmp_ok($cond->set_options( SURE => 1 ), '==', $cond->set_options('SURE'), "set_option backward compatibility");  cmp_ok($cond->set_options( SURE => 1 ), '==', $cond->set_options('SURE'), "set_option backward compatibility");
39    
40    ok($cond->set_mask(qw/0 1 2/), 'mask');
41    
42  my $v;  my $v;
43  cmp_ok($v = $cond->phrase, 'eq', 'search', "phrase: $v");  cmp_ok($v = $cond->phrase, 'eq', 'search', "phrase: $v");
44  cmp_ok($v = $cond->max, '==', 42, "max: $v");  cmp_ok($v = $cond->max, '==', 42, "max: $v");

Legend:
Removed from v.172  
changed lines
  Added in v.173

  ViewVC Help
Powered by ViewVC 1.1.26