Bugzilla – Attachment 102777 Details for
Bug 24903
Special characters like parentheses in numbering pattern cause duplication in recievedlist
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24903: Add tests for _handle_seqno
Bug-24903-Add-tests-for-handleseqno.patch (text/plain), 2.43 KB, created by
Katrin Fischer
on 2020-04-12 22:24:59 UTC
(
hide
)
Description:
Bug 24903: Add tests for _handle_seqno
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-04-12 22:24:59 UTC
Size:
2.43 KB
patch
obsolete
>From 706a7b50bb8f9f462056dd7b3911f7c9d4e5a58b Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <mdry@live.nl> >Date: Thu, 19 Mar 2020 14:39:14 +0100 >Subject: [PATCH] Bug 24903: Add tests for _handle_seqno > >Trivial tests. > >Test plan: >Run t/Serials/ModSerialStatus.t > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> > >Signed-off-by: Laurence Rault <laurence.rault@biblibre.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > t/Serials/ModSerialStatus.t | 38 ++++++++++++++++++++++++++++++++++++++ > 1 file changed, 38 insertions(+) > create mode 100755 t/Serials/ModSerialStatus.t > >diff --git a/t/Serials/ModSerialStatus.t b/t/Serials/ModSerialStatus.t >new file mode 100755 >index 0000000000..afd7effcfb >--- /dev/null >+++ b/t/Serials/ModSerialStatus.t >@@ -0,0 +1,38 @@ >+#!/usr/bin/perl >+ >+# Copyright 2020 Rijksmuseum >+# >+# This file is part of Koha. >+# >+# Koha is free software; you can redistribute it and/or modify it >+# under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 3 of the License, or >+# (at your option) any later version. >+# >+# Koha is distributed in the hope that it will be useful, but >+# WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+# >+# You should have received a copy of the GNU General Public License >+# along with Koha; if not, see <http://www.gnu.org/licenses>. >+ >+# Testing private routine C4::Serials::_handle_seqno of ModSerialStatus >+ >+use Modern::Perl; >+use Data::Dumper qw/Dumper/; >+ >+use Test::More tests => 8; >+ >+use C4::Serials qw//; >+ >+# Testing C4::Serials::_handle_seqno >+my $list = '2017 (No. 8); 2017 (No. 9); 2017 (No. 10)'; >+is( C4::Serials::_handle_seqno( '2017 (No. 8)', $list ), $list, 'Not added 8' ); >+is( C4::Serials::_handle_seqno( '2017 (No. 9)', $list ), $list, 'Not added 9' ); >+is( C4::Serials::_handle_seqno( '2017 (No. 10)', $list ), $list, 'Not added 10' ); >+is( C4::Serials::_handle_seqno( '2017 (No. 11)', $list ), $list.'; 2017 (No. 11)', 'Added 11' ); >+is( C4::Serials::_handle_seqno( '2017 (No. 7)', $list, 'REMOVE'), $list, 'Not removed 7' ); >+is( C4::Serials::_handle_seqno( '2017 (No. 10)', $list, 'REMOVE') !~ /\(10\)/, 1, 'Removed 10' ); >+is( C4::Serials::_handle_seqno( '2017 (No. 8)', $list, 'CHECK'), 1, 'Found 8' ); >+is( C4::Serials::_handle_seqno( '2017 (No. 11)', $list, 'CHECK'), q{}, 'Not found 11' ); >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24903
:
101024
|
101025
|
102686
|
102687
|
102776
| 102777