4 |
use strict; |
use strict; |
5 |
use autodie; |
use autodie; |
6 |
|
|
7 |
use Test::More tests => 3; |
use Test::More tests => 4; |
8 |
|
|
9 |
use_ok 'html'; |
use_ok 'html'; |
10 |
|
|
11 |
ok( my $html = html::table( 2, qw/a1 a2 b1 b2 c1 c2/ ), 'table' ); |
ok( my $html = html::table( 2, qw/a1 a2 b1 b2 c1 c2/ ), 'table' ); |
12 |
diag $html; |
diag $html; |
13 |
|
|
14 |
|
ok( $html = html::table( -3, qw/h1 h2 h3 a1 a2 a3 b1 b2 b3/ ), 'table' ); |
15 |
|
diag $html; |
16 |
|
|
17 |
ok( $html = html::select( 'dropdown', 2, 1, 2, 3 ), 'select' ); |
ok( $html = html::select( 'dropdown', 2, 1, 2, 3 ), 'select' ); |
18 |
diag $html; |
diag $html; |