added ip parser
[pxelator] / lib / PXElator / t / ip.t
1 #!/usr/bin/perl
2
3 use warnings;
4 use strict;
5 use autodie;
6
7 use Test::More tests => 5;
8 use Data::Dump qw/dump/;
9
10 use_ok 'ip';
11
12 foreach my $object ( qw/link route/ ) {
13         ok( my @a = ip::lines( $object ), "lines $object" );
14         diag dump( @a );
15         ok( my $h = ip::html( $object ), "html $object" );
16         diag $h;
17 }
18