File: 02-empty.t

package info (click to toggle)
libirc-formatting-html-perl 0.29-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 92 kB
  • sloc: perl: 464; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 238 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!perl -T

use Test::More;
use IRC::Formatting::HTML qw/irc_to_html/;

my $empty = "";
my $html = irc_to_html($empty);
ok($html eq "");

my $zero = "0";
$html = irc_to_html($zero);
ok($html eq '<span style="">0</span>');

done_testing();