Bug 11944: use CGI( -utf8 ) everywhere
[koha.git] / t / Ris.t
1 #!/usr/bin/perl
2 #
3 # This Koha test module is a stub!  
4 # Add more tests here!!!
5
6 use strict;
7 use warnings;
8
9 use Test::More tests => 6;
10
11 BEGIN {
12         use_ok('C4::Ris');
13 }
14
15 is(C4::Ris::print_typetag(),undef,'test printing typetag');
16
17 is(C4::Ris::print_title(),undef, 'test printing title when print_title is nil');
18
19 is(C4::Ris::print_stitle(),undef, 'test printing info from series title field when its nil');
20
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');