Lines 6-12
Link Here
|
6 |
use strict; |
6 |
use strict; |
7 |
use warnings; |
7 |
use warnings; |
8 |
|
8 |
|
9 |
use Test::More tests => 6; |
9 |
use Test::More tests => 7; |
10 |
|
10 |
|
11 |
BEGIN { |
11 |
BEGIN { |
12 |
use_ok('C4::ClassSortRoutine::Dewey'); |
12 |
use_ok('C4::ClassSortRoutine::Dewey'); |
Lines 26-28
is($cn_sort,"ABC_123_456000000000000","testing alphanumeric");
Link Here
|
26 |
|
26 |
|
27 |
$cn_sort = C4::ClassSortRoutine::Dewey::get_class_sort_key("ab c123","45 6"); |
27 |
$cn_sort = C4::ClassSortRoutine::Dewey::get_class_sort_key("ab c123","45 6"); |
28 |
is($cn_sort,"AB_C123_45_600000000000000","testing middle whitespace"); |
28 |
is($cn_sort,"AB_C123_45_600000000000000","testing middle whitespace"); |
29 |
- |
29 |
|
|
|
30 |
$cn_sort = C4::ClassSortRoutine::Dewey::get_class_sort_key("YR DVD 800.1",""); |
31 |
my $cn_sort2 = C4::ClassSortRoutine::Dewey::get_class_sort_key("YR DVD 900",""); |
32 |
ok( $cn_sort lt $cn_sort2, "testing prefix plus decimal" ); |