use strict;
use warnings;
+use C4::ClassSplitRoutine::LCC qw( split_callnumber );
use Test::More;
BEGIN {
}
my $test_num = 1;
foreach (keys(%$lccns)) {
- my $split_num += scalar(@{$lccns->{$_}});
+ my $split_num = scalar(@{$lccns->{$_}});
$test_num += 2 * $split_num;
$test_num += 4;
}
my (@parts, @expected);
ok($lccn, "lccn: $lccn");
ok(@expected = @{$lccns->{$lccn}}, "split expected to produce " . scalar(@expected) . " pieces");
- ok(@parts = C4::Labels::Label::_split_lccn($lccn), "C4::Labels::Label::_split_lccn($lccn)");
+ ok(@parts = C4::ClassSplitRoutine::LCC::split_callnumber($lccn), "split LCC ($lccn)");
ok(scalar(@expected) == scalar(@parts), sprintf("%d of %d pieces produced", scalar(@parts), scalar(@expected)));
my $i = 0;
foreach my $unit (@expected) {