From 1a6e51934df7f21f9b64f52606edb84180b5be2d Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 15 Jul 2020 15:33:18 +0000 Subject: [PATCH] Bug 23086: Unit test Signed-off-by: Katrin Fischer Signed-off-by: Alex Arnaud Signed-off-by: Jonathan Druart (cherry picked from commit 40b6e1b8a1a6e74cb4e9a1c422ffa4faa0bdefc0) Signed-off-by: Lucas Gass --- t/db_dependent/Search.t | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Search.t b/t/db_dependent/Search.t index 880f5205c3..c8cc3d7f3b 100644 --- a/t/db_dependent/Search.t +++ b/t/db_dependent/Search.t @@ -668,6 +668,12 @@ ok(MARC::Record::new_from_xml($results_hashref->{biblioserver}->{RECORDS}->[0],' $query_type ) = buildQuery([], [ 0 ], [ 'su,phr' ], [], [], 0, 'en'); is($query, 'su,phr=0 ', 'buildQuery should keep 0 value'); + # Bug 23086 + ( $error, $query, $simple_query, $query_cgi, + $query_desc, $limit, $limit_cgi, $limit_desc, + $query_type ) = buildQuery([], [], [], [ 'mc-ccode:NF(IC'], [], 0, 'en'); + like($query, qr/ccode="NF\(IC"/, "Limit quoted correctly"); + # Let's see what happens when we pass bad data into these routines. # We have to catch warnings since we're not very good about returning errors. @@ -906,7 +912,7 @@ sub run_unimarc_search_tests { } subtest 'MARC21 + DOM' => sub { - plan tests => 87; + plan tests => 88; run_marc21_search_tests(); }; -- 2.39.5