4 |
use strict; |
use strict; |
5 |
use autodie; |
use autodie; |
6 |
|
|
7 |
use Test::More tests => 5; |
use Test::More tests => 8; |
8 |
|
use Data::Dump qw/dump/; |
9 |
|
|
10 |
use_ok 'html'; |
use_ok 'html'; |
11 |
|
|
20 |
|
|
21 |
ok( $html = html::pre_dump( foo => 1, bar => 'baz' ), 'pre_dump' ); |
ok( $html = html::pre_dump( foo => 1, bar => 'baz' ), 'pre_dump' ); |
22 |
diag $html; |
diag $html; |
23 |
|
|
24 |
|
ok( $html = html::conf( '127.0.0.1', { foo => 1, bar => 'baz' } ), 'conf' ); |
25 |
|
diag $html; |
26 |
|
|
27 |
|
ok( my @t = html::conf( '127.0.0.1', { foo => 1, bar => 'baz' }, 'table' ), 'conf table' ); |
28 |
|
diag dump @t; |
29 |
|
|
30 |
|
ok( @t = html::conf( '127.0.0.1', { foo => 1, bar => 'baz' }, 'edit', 'foo' ), 'conf edit' ); |
31 |
|
diag dump @t; |