Bugzilla – Attachment 19195 Details for
Bug 9770
C4::ClassSortRoutine::Dewey can pad the wrong part of a call number internally
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for ClassSortRoutine_Dewey.t
0001-Bug-9770-C4-ClassSortRoutine-Dewey-sorting-2.patch (text/plain), 1.29 KB, created by
Jason Etheridge
on 2013-06-21 19:15:48 UTC
(
hide
)
Description:
patch for ClassSortRoutine_Dewey.t
Filename:
MIME Type:
Creator:
Jason Etheridge
Created:
2013-06-21 19:15:48 UTC
Size:
1.29 KB
patch
obsolete
>From e2b56b93e6838583062706d1702564a2f2be77e8 Mon Sep 17 00:00:00 2001 >From: Jason Etheridge <jason@esilibrary.com> >Date: Fri, 21 Jun 2013 15:31:32 -0400 >Subject: [PATCH] Bug 9770: C4::ClassSortRoutine::Dewey sorting #2 > >This adds a test for C4::ClassSortRoutine::Dewey, with the assumption that the >call number "JR DVD 800.1" should sort before "JR DVD 900" > >Signed-off-by: Jason Etheridge <jason@esilibrary.com> >--- > t/ClassSortRoutine_Dewey.t | 6 +++++- > 1 files changed, 5 insertions(+), 1 deletions(-) > >diff --git a/t/ClassSortRoutine_Dewey.t b/t/ClassSortRoutine_Dewey.t >index 7a4d7f4..38b9f04 100755 >--- a/t/ClassSortRoutine_Dewey.t >+++ b/t/ClassSortRoutine_Dewey.t >@@ -6,7 +6,7 @@ > use strict; > use warnings; > >-use Test::More tests => 6; >+use Test::More tests => 7; > > BEGIN { > use_ok('C4::ClassSortRoutine::Dewey'); >@@ -26,3 +26,7 @@ is($cn_sort,"ABC_123_456000000000000","testing alphanumeric"); > > $cn_sort = C4::ClassSortRoutine::Dewey::get_class_sort_key("ab c123","45 6"); > is($cn_sort,"AB_C123_45_600000000000000","testing middle whitespace"); >+ >+$cn_sort = C4::ClassSortRoutine::Dewey::get_class_sort_key("YR DVD 800.1",""); >+my $cn_sort2 = C4::ClassSortRoutine::Dewey::get_class_sort_key("YR DVD 900",""); >+ok( $cn_sort lt $cn_sort2, "testing prefix plus decimal" ); >-- >1.7.2.5 >
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 9770
:
15977
|
19195
|
19383
|
19384
|
19385
|
19386
|
19387
|
19629
|
19630