Bug 9177 - Duplicate patron: Prepopulated fields ar cleared when setting cursor
[koha.git] / t / Ris.t
blobb4126c5eb87eb311be072f0034ade8a50b128dbc
1 #!/usr/bin/perl
3 # This Koha test module is a stub!
4 # Add more tests here!!!
6 use strict;
7 use warnings;
9 use Test::More tests => 6;
11 BEGIN {
12 use_ok('C4::Ris');
15 is(C4::Ris::print_typetag(),undef,'test printing typetag');
17 is(C4::Ris::print_title(),undef, 'test printing title when print_title is nil');
19 is(C4::Ris::print_stitle(),undef, 'test printing info from series title field when its nil');
21 ok((C4::Ris::charconv('hello world'))[0] eq 'hello world', 'testing that it returns what you entered');
22 ok(C4::Ris::charconv() == 0, 'testing when charconv is nil');