Lines 2-8
Link Here
|
2 |
use strict; |
2 |
use strict; |
3 |
use warnings; |
3 |
use warnings; |
4 |
|
4 |
|
5 |
use Test::More tests => 2; |
5 |
use Test::More tests => 5; |
6 |
|
6 |
|
7 |
use_ok('C4::Koha'); |
7 |
use_ok('C4::Koha'); |
8 |
|
8 |
|
Lines 13-15
my $date = "01/01/2002";
Link Here
|
13 |
my $newdate = &slashifyDate("2002-01-01"); |
13 |
my $newdate = &slashifyDate("2002-01-01"); |
14 |
|
14 |
|
15 |
ok($date eq $newdate, 'slashifyDate'); |
15 |
ok($date eq $newdate, 'slashifyDate'); |
16 |
- |
16 |
|
|
|
17 |
my $undef = undef; |
18 |
is(xml_escape($undef), '', 'xml_escape() returns empty string on undef input'); |
19 |
my $str = q{'"&<>'}; |
20 |
is(xml_escape($str), ''"&<>'', 'xml_escape() works as expected'); |
21 |
is($str, q{'"&<>'}, '... and does not change input in place'); |