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:
Janusz Kaczmarek 2024-04-10 19:38:29 +00:00 committed by Martin Renvoize
parent a871ad191b
commit 4e80bd7b4e
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 9 additions and 1 deletions

View File

@ -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},