Lines 187-193
subtest '_split_query() tests' => sub {
Link Here
|
187 |
}; |
187 |
}; |
188 |
|
188 |
|
189 |
subtest 'clean_search_term() tests' => sub { |
189 |
subtest 'clean_search_term() tests' => sub { |
190 |
plan tests => 24; |
190 |
plan tests => 25; |
191 |
|
191 |
|
192 |
my $qb; |
192 |
my $qb; |
193 |
ok( |
193 |
ok( |
Lines 239-244
subtest 'clean_search_term() tests' => sub {
Link Here
|
239 |
$res = $qb->clean_search_term('test! and more'); |
239 |
$res = $qb->clean_search_term('test! and more'); |
240 |
is($res, 'test and more', 'remove exclamation sign at with space after it'); |
240 |
is($res, 'test and more', 'remove exclamation sign at with space after it'); |
241 |
|
241 |
|
|
|
242 |
$res = $qb->clean_search_term('test! and more (and more!)'); |
243 |
is($res, 'test and more (and more)', 'remove exclamation sign followed by close parentheses'); |
244 |
|
242 |
$res = $qb->clean_search_term('!test'); |
245 |
$res = $qb->clean_search_term('!test'); |
243 |
is($res, '!test', 'exclamation sign left untouched'); |
246 |
is($res, '!test', 'exclamation sign left untouched'); |
244 |
|
247 |
|
245 |
- |
|
|