File: newnames.t

package info (click to toggle)
libwww-shorten-perl 3.03-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 312 kB
  • sloc: perl: 253; makefile: 7
file content (17 lines) | stat: -rw-r--r-- 394 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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($@);