/[pxelator]/lib/PXElator/t/format.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /lib/PXElator/t/format.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 216 - (show annotations)
Thu Aug 13 13:06:18 2009 UTC (14 years, 8 months ago) by dpavlin
File MIME type: application/x-troff
File size: 399 byte(s)
cleanup format::mac
1 #!/usr/bin/perl
2
3 use warnings;
4 use strict;
5
6 use Test::More tests => 7;
7
8 use_ok 'format';
9
10 ok( my $mac = format::mac( 'dead00beef' ), 'mac' );
11 diag $mac;
12 cmp_ok ( $mac, 'eq', 'DE:AD:00:BE:EF', 'formated' );
13
14 ok( my $tmp = format::mac( $mac ), 'mac allready formatted' );
15 cmp_ok( $tmp, 'eq', $mac );
16
17 ok( my $html = format::mac( 'dead00beef', 'html' ), 'mac html' );
18 like( $html, qr/<tt>/i, 'html' );

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26