|
Lines 6-14
Link Here
|
| 6 |
use strict; |
6 |
use strict; |
| 7 |
use warnings; |
7 |
use warnings; |
| 8 |
|
8 |
|
| 9 |
use Test::More tests => 1; |
9 |
use Test::More tests => 6; |
| 10 |
|
10 |
|
| 11 |
BEGIN { |
11 |
BEGIN { |
| 12 |
use_ok('C4::Ris'); |
12 |
use_ok('C4::Ris'); |
| 13 |
} |
13 |
} |
| 14 |
|
14 |
|
| 15 |
- |
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'); |