From 88aee70187719efdc6fb72f1ac269bd48303f81f Mon Sep 17 00:00:00 2001 From: Sam Sanders Date: Wed, 18 Jan 2012 15:38:52 +1300 Subject: [PATCH] bug 5327 added unit tests for C4/Ris.pm Signed-off-by: Chris Hall (cherry picked from commit 0618b9db72b548a962c5e235397e1cdb6feb0f13) Signed-off-by: Chris Nighswonger --- t/Ris.t | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/t/Ris.t b/t/Ris.t index 30157e4544..b4126c5eb8 100755 --- a/t/Ris.t +++ b/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'); -- 2.39.5