3 |
use strict; |
use strict; |
4 |
use blib; |
use blib; |
5 |
|
|
6 |
use Test::More tests => 8; |
use Test::More tests => 15; |
7 |
use Test::Exception; |
use Test::Exception; |
8 |
#use Data::Dumper; |
#use Data::Dumper; |
9 |
|
|
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 |
|
} |
24 |
|
|
25 |
|
cmp_ok($cond->phrase, 'eq', 'search', 'phrase'); |