7 use Test::More tests => 8;
8 use Data::Dump qw/dump/;
12 ok( my $html = html::table( 2, qw/a1 a2 b1 b2 c1 c2/ ), 'table' );
15 ok( $html = html::table( -3, qw/h1 h2 h3 a1 a2 a3 b1 b2 b3/ ), 'table' );
18 ok( $html = html::select( 'dropdown', 2, 1, 2, 3 ), 'select' );
21 ok( $html = html::pre_dump( foo => 1, bar => 'baz' ), 'pre_dump' );
24 ok( $html = html::conf( '127.0.0.1', { foo => 1, bar => 'baz' } ), 'conf' );
27 ok( my @t = html::conf( '127.0.0.1', { foo => 1, bar => 'baz' }, 'table' ), 'conf table' );
30 ok( @t = html::conf( '127.0.0.1', { foo => 1, bar => 'baz' }, 'edit', 'foo' ), 'conf edit' );