X-Git-Url: http://git.shiar.net/perl/html-form-simple.git/blobdiff_plain/2ba73dcfab70f6f5de8840658f98e1df53db3e53..061e1dbc2abe6c89b90348e22e5f3455a2b8328d:/t/html.t diff --git a/t/html.t b/t/html.t index 5b3fa2a..a82c916 100644 --- a/t/html.t +++ b/t/html.t @@ -5,13 +5,39 @@ use warnings; use Test::More; -plan tests => 72; +plan tests => 76; use_ok('HTML::Form::Simple'); my $form = HTML::Form::Simple->new; ok($form, 'new form'); +# basics + +is( + $form->quote('<"test">'), + '<"test">', + 'quote' +); + +is( + $form->quote(\'<"test">'), + '<"test">', + 'quote unquoted' +); + +is( + $form->tag('foo'), + '', + 'tag' +); + +is( + $form->tag('a "' => {'b"' => 'c"'}), + '', + 'tag attributes' +); + # form is(