Bugzilla – Attachment 99186 Details for
Bug 24674
Uncertain years for publicationyear/copyrightdate -- corrected
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24674: Adjust tests and add new ones to cover changes
Bug-24674-Adjust-tests-and-add-new-ones-to-cover-c.patch (text/plain), 1.71 KB, created by
Jonathan Druart
on 2020-02-18 13:50:29 UTC
(
hide
)
Description:
Bug 24674: Adjust tests and add new ones to cover changes
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-02-18 13:50:29 UTC
Size:
1.71 KB
patch
obsolete
>From 310a52ec25458e094d490d974774abc3b0fc479d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 18 Feb 2020 14:49:46 +0100 >Subject: [PATCH] Bug 24674: Adjust tests and add new ones to cover changes > >--- > t/db_dependent/Biblio/TransformMarcToKoha.t | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/Biblio/TransformMarcToKoha.t b/t/db_dependent/Biblio/TransformMarcToKoha.t >index b9c02a8cc9..adb3215296 100644 >--- a/t/db_dependent/Biblio/TransformMarcToKoha.t >+++ b/t/db_dependent/Biblio/TransformMarcToKoha.t >@@ -94,7 +94,7 @@ subtest 'Multiple mappings for one kohafield' => sub { > }; > > subtest 'Testing _adjust_pubyear' => sub { >- plan tests => 10; >+ plan tests => 15; > > is( C4::Biblio::_adjust_pubyear('2004 c2000 2007'), 2000, 'First cYEAR' ); > is( C4::Biblio::_adjust_pubyear('2004 2000 2007'), 2004, 'First year' ); >@@ -104,7 +104,12 @@ subtest 'Testing _adjust_pubyear' => sub { > is( C4::Biblio::_adjust_pubyear('1...'), 1000, '1... on its own' ); > is( C4::Biblio::_adjust_pubyear('12?? 13xx'), 1200, '12?? first' ); > is( C4::Biblio::_adjust_pubyear('12? 1x'), '12? 1x', 'Too short' ); >- is( C4::Biblio::_adjust_pubyear('198-'), '198-', 'Missing question mark' ); >+ is( C4::Biblio::_adjust_pubyear('198-'), '1980', '198-' ); >+ is( C4::Biblio::_adjust_pubyear('19--'), '1900', '19--' ); >+ is( C4::Biblio::_adjust_pubyear('19-'), '1900', '19-' ); >+ is( C4::Biblio::_adjust_pubyear('2---'), '2000', '2---' ); >+ is( C4::Biblio::_adjust_pubyear('2--'), '2000', '2--' ); >+ is( C4::Biblio::_adjust_pubyear('2-'), '2000', '2-' ); > is( C4::Biblio::_adjust_pubyear('198-?'), '1980', '198-?' ); > }; > >-- >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 24674
:
99088
|
99173
|
99186
|
125108
|
125109
|
125110
|
126810
|
126811
|
126812