From 89feb3e59be59ddb6a0b209820f6f10f27700228 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 (cherry picked from commit 1a6e51934df7f21f9b64f52606edb84180b5be2d) Signed-off-by: Aleisha Amohia (cherry picked from commit df53ab009445f9ed96b2ef99dc5f0d046d16a96c) Signed-off-by: Victor Grousset/tuxayo --- 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 2a50a8d60c..dc6a7a3a84 100644 --- a/t/db_dependent/Search.t +++ b/t/db_dependent/Search.t @@ -669,6 +669,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. @@ -1015,7 +1021,7 @@ sub run_unimarc_search_tests { } subtest 'MARC21 + DOM' => sub { - plan tests => 114; + plan tests => 115; run_marc21_search_tests(); }; -- 2.39.5