Lines 93-99
eval {
Link Here
|
93 |
$isbn = C4::Koha::NormalizeISBN({ isbn => '979-10-90085-00-8', format => 'ISBN-10', strip_hyphens => 1 }); |
93 |
$isbn = C4::Koha::NormalizeISBN({ isbn => '979-10-90085-00-8', format => 'ISBN-10', strip_hyphens => 1 }); |
94 |
}; |
94 |
}; |
95 |
ok($@ eq '', 'NormalizeISBN does not throw exception when converting to ISBN10 an ISBN starting with 979 (bug 13167)'); |
95 |
ok($@ eq '', 'NormalizeISBN does not throw exception when converting to ISBN10 an ISBN starting with 979 (bug 13167)'); |
96 |
ok(!defined $isbn, 'NormalizeISBN returns undef when converting to ISBN10 an ISBN starting with 979 (bug 13167)'); |
96 |
ok($isbn eq "9791090085008", 'NormalizeISBN returns ISBN-13 when converting to ISBN10 an ISBN starting with 979 (bug 14287)'); |
97 |
|
97 |
|
98 |
@isbns = GetVariationsOfISBNs('abc'); |
98 |
@isbns = GetVariationsOfISBNs('abc'); |
99 |
is(scalar(@isbns), 0, 'zero variations returned of invalid ISBN'); |
99 |
is(scalar(@isbns), 0, 'zero variations returned of invalid ISBN'); |
100 |
- |
|
|