From 99b81d90cbd9b039e5c0e2d65be31e2cbe3fe532 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 --- 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 024e9aba29..5c3d7fe81c 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.11.0