X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=t%2FKoha.t;h=e617146f93b2c6c566251c89138786f3517e1ce3;hb=512f79b87cb23346a785278d51b3c7a9c3983622;hp=500dcb5c9e10e10235f173642c869c0e6bfe364e;hpb=68ced964fd254e7cba67a9b1b867907c557888c4;p=koha.git diff --git a/t/Koha.t b/t/Koha.t index 500dcb5c9e..e617146f93 100755 --- a/t/Koha.t +++ b/t/Koha.t @@ -25,7 +25,7 @@ use Module::Load::Conditional qw/check_install/; BEGIN { if ( check_install( module => 'Test::DBIx::Class' ) ) { - plan tests => 37; + plan tests => 38; } else { plan skip_all => "Need Test::DBIx::Class" } @@ -152,6 +152,7 @@ eval { ok($@ eq '', 'NormalizeISSN does not throw exception when parsing invalid ISSN'); @issns = GetVariationsOfISSNs('abc'); -is(scalar(@issns), 0, 'zero variations returned of invalid ISSN'); +is($issns[0], 'abc', 'Original ISSN passed through even if invalid'); +is(scalar(@issns), 1, 'zero additional variations returned of invalid ISSN'); 1;