use strict; use Test; use warnings; use diagnostics; # use a BEGIN block so we print our plan before MyModule is loaded BEGIN { plan tests => 6 } # load your module... use HTML::Tag; # Helpful notes. All note-lines must start with a "#". print "# I'm testing HTML::Tag::TEXTFIELD\n"; my $obj = HTML::Tag->new(element=>'TEXTFIELD',name => ''); ok(defined $obj); ok($obj->html,''); $obj->name('test'); ok($obj->html,''); $obj->value('tv'); ok($obj->html,''); $obj->size(6); ok($obj->html,''); $obj->maxlength(6); ok($obj->html,'');