Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (11 sloc) 394 Bytes
use Test::More tests => 6;
use WWW::Shorten qw( Metamark :short );
ok( exists $::{'short_link'}, 'shorter exists');
ok( exists $::{'long_link'}, 'longer exists');
use WWW::Shorten qw( Metamark :default );
ok( exists $::{'makeashorterlink'}, 'shorter exists');
ok( exists $::{'makealongerlink'}, 'longer exists');
eval { &makeashorterlink() };
ok($@);
eval { &makealongerlink() };
ok($@);