Lines 14-30
BEGIN {
Link Here
|
14 |
|
14 |
|
15 |
#Obvious cases |
15 |
#Obvious cases |
16 |
is(C4::ClassSortRoutine::LCC::get_class_sort_key(), "", "No arguments returns an empty string"); |
16 |
is(C4::ClassSortRoutine::LCC::get_class_sort_key(), "", "No arguments returns an empty string"); |
17 |
is(C4::ClassSortRoutine::LCC::get_class_sort_key('a','b'), "A_B", "Arguments 'a','b' return 'A_B'"); |
17 |
is(C4::ClassSortRoutine::LCC::get_class_sort_key('a','b'), "A B", "Arguments 'a','b' return 'A B'"); |
18 |
|
18 |
|
19 |
#spaces in arguements |
19 |
#spaces in arguements |
20 |
is(C4::ClassSortRoutine::LCC::get_class_sort_key(' ','b'), "B_", "Arguments ' ','b' return 'B_'"); |
20 |
is(C4::ClassSortRoutine::LCC::get_class_sort_key(' ','b'), "B", "Arguments ' ','b' return 'B'"); |
21 |
is(C4::ClassSortRoutine::LCC::get_class_sort_key('a',' '), "A_", "Arguments 'a',' ' return 'A_'"); |
21 |
is(C4::ClassSortRoutine::LCC::get_class_sort_key('a',' '), "A", "Arguments 'a',' ' return 'A'"); |
22 |
is(C4::ClassSortRoutine::LCC::get_class_sort_key(' ',' '), "", "Arguments ' ',' ' return ''"); |
22 |
is(C4::ClassSortRoutine::LCC::get_class_sort_key(' ',' '), "", "Arguments ' ',' ' return ''"); |
23 |
|
23 |
|
24 |
#'funky cases' based on regex in code |
24 |
#'funky cases' based on regex in code |
25 |
is(C4::ClassSortRoutine::LCC::get_class_sort_key('.','b'), "_B", "Arguments '.','b' return '_B'"); |
25 |
is(C4::ClassSortRoutine::LCC::get_class_sort_key('.','b'), "", "Arguments '.','b' return ''"); |
26 |
is(C4::ClassSortRoutine::LCC::get_class_sort_key('....','........'), "_______", "Arguments '....','........' return '_______'"); |
26 |
is(C4::ClassSortRoutine::LCC::get_class_sort_key('....','........'), "", "Arguments '....','........' return ''"); |
27 |
is(C4::ClassSortRoutine::LCC::get_class_sort_key('.','.'), "__", "Arguments '.','.' return '__'"); |
27 |
is(C4::ClassSortRoutine::LCC::get_class_sort_key('.','.'), "", "Arguments '.','.' return ''"); |
28 |
|
28 |
|
29 |
# list of example call numbers -- these |
29 |
# list of example call numbers -- these |
30 |
# are intentionally in the _reverse_ of |
30 |
# are intentionally in the _reverse_ of |
31 |
- |
|
|