Debian Codegraph @

t/00smoke.t

raw
1 use Test::More tests=>8;
2
3 use_ok(HTTP::Server::Simple);
4 ok(HTTP::Server::Simple->can('new'), 'can new()');
5 my $s= HTTP::Server::Simple->new();
6 isa_ok($s,'HTTP::Server::Simple');
7 is($s->port(),8080,'Defaults to 8080');
8 is($s->port(13432),13432,'Can change port');
9 is($s->port(),13432,'Change persists');
10 ok($s->can('print_banner'), 'can print_banner()');
11 ok($s->can('run'), 'can run()');