Bug 33407: Unit tests
Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl> Signed-off-by: Thomas Klausner <domm@plix.at> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
a871ad191b
commit
4e80bd7b4e
|
|
@ -219,7 +219,7 @@ subtest 'build_authorities_query_compat() tests' => sub {
|
|||
};
|
||||
|
||||
subtest 'build_query tests' => sub {
|
||||
plan tests => 57;
|
||||
plan tests => 58;
|
||||
|
||||
my $qb;
|
||||
|
||||
|
|
@ -449,6 +449,14 @@ subtest 'build_query tests' => sub {
|
|||
"query of boolean type field is not truncated even if QueryAutoTruncate is set"
|
||||
);
|
||||
|
||||
( undef, $query ) =
|
||||
$qb->build_query_compat( undef, ['First title ; Second title : some & subtitle / Authors Name'] );
|
||||
is(
|
||||
$query->{query}{query_string}{query},
|
||||
'(First* title* Second* title* some* subtitle* Authors* Name*)',
|
||||
"ISBD punctualtion and problematic characters properly removed"
|
||||
);
|
||||
|
||||
( undef, $query ) = $qb->build_query_compat( undef, ['J.R.R'] );
|
||||
is(
|
||||
$query->{query}{query_string}{query},
|
||||
|
|
|
|||
Loading…
Reference in New Issue