bug 5327 added unit tests for C4/Ris.pm
Signed-off-by: Chris Hall <chrish@catalyst.net.nz> (cherry picked from commit0618b9db72) Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com> (cherry picked from commit88aee70187) Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
parent
4dbefb7d77
commit
cf398b8ab4
10
t/Ris.t
10
t/Ris.t
|
|
@ -6,9 +6,17 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Test::More tests => 1;
|
||||
use Test::More tests => 6;
|
||||
|
||||
BEGIN {
|
||||
use_ok('C4::Ris');
|
||||
}
|
||||
|
||||
is(C4::Ris::print_typetag(),undef,'test printing typetag');
|
||||
|
||||
is(C4::Ris::print_title(),undef, 'test printing title when print_title is nil');
|
||||
|
||||
is(C4::Ris::print_stitle(),undef, 'test printing info from series title field when its nil');
|
||||
|
||||
ok((C4::Ris::charconv('hello world'))[0] eq 'hello world', 'testing that it returns what you entered');
|
||||
ok(C4::Ris::charconv() == 0, 'testing when charconv is nil');
|
||||
|
|
|
|||
Loading…
Reference in New Issue