/[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 16 by dpavlin, Wed Jan 4 22:43:24 2006 UTC revision 17 by dpavlin, Wed Jan 4 22:46:16 2006 UTC
# Line 3  Line 3 
3  use strict;  use strict;
4  use blib;  use blib;
5    
6  use Test::More tests => 8;  use Test::More tests => 14;
7  use Test::Exception;  use Test::Exception;
8  #use Data::Dumper;  #use Data::Dumper;
9    
# Line 17  ok($cond->add_attr('@foo BAR baz'), 'set Line 17  ok($cond->add_attr('@foo BAR baz'), 'set
17  ok($cond->set_order('@foo ASC'), 'set_order');  ok($cond->set_order('@foo ASC'), 'set_order');
18  ok($cond->set_max(42), 'set_max, number');  ok($cond->set_max(42), 'set_max, number');
19  throws_ok { $cond->set_max('foo') } qr/number/, 'set_max, NaN';  throws_ok { $cond->set_max('foo') } qr/number/, 'set_max, NaN';
20    
21    foreach my $opt (qw/SURE USUAL FAST AGITO NOIDF SIMPLE/) {
22            ok($cond->set_options( $opt ), 'set_option '.$opt);
23    }

Legend:
Removed from v.16  
changed lines
  Added in v.17

  ViewVC Help
Powered by ViewVC 1.1.26