/[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 15 by dpavlin, Wed Jan 4 22:24:57 2006 UTC revision 16 by dpavlin, Wed Jan 4 22:43:24 2006 UTC
# Line 3  Line 3 
3  use strict;  use strict;
4  use blib;  use blib;
5    
6  use Test::More tests => 3;  use Test::More tests => 8;
7  #use Test::Exception;  use Test::Exception;
8  #use Data::Dumper;  #use Data::Dumper;
9    
10  BEGIN { use_ok('Search::Estraier') };  BEGIN { use_ok('Search::Estraier') };
# Line 12  BEGIN { use_ok('Search::Estraier') }; Line 12  BEGIN { use_ok('Search::Estraier') };
12  ok(my $cond = new Search::Estraier::Condition, 'new');  ok(my $cond = new Search::Estraier::Condition, 'new');
13  isa_ok($cond, 'Search::Estraier::Condition');  isa_ok($cond, 'Search::Estraier::Condition');
14    
15    ok($cond->set_phrase('search'), 'set_phrase');
16    ok($cond->add_attr('@foo BAR baz'), 'set_phrase');
17    ok($cond->set_order('@foo ASC'), 'set_order');
18    ok($cond->set_max(42), 'set_max, number');
19    throws_ok { $cond->set_max('foo') } qr/number/, 'set_max, NaN';

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

  ViewVC Help
Powered by ViewVC 1.1.26