X-Git-Url: http://git.shiar.net/perl/html-form-simple.git/blobdiff_plain/80de26e2b6b53f54ffb5232472e56c3225a101e1..6bef855dc6c753640512d512e5b31e2734484382:/t/html.t diff --git a/t/html.t b/t/html.t index e5abb9a..8ab4806 100644 --- a/t/html.t +++ b/t/html.t @@ -5,7 +5,7 @@ use warnings; use Test::More; -plan tests => 51; +plan tests => 52; use_ok('HTML::Form::Simple'); @@ -286,7 +286,7 @@ is( ); is( - $form->radio(foo => undef, [2]), #TODO + $form->radio(foo => undef, 2), '', 'labelless radio' ); @@ -369,6 +369,18 @@ is_deeply( 'multiple checked checkboxes' ); +{ + local $, = ' | '; + is( + scalar $form->check(foo => [1, 0], {value => 0}), + join(' | ', + '', + '', + ), + 'merged checkboxes' + ); +} + is_deeply( [ $form->check(undef, [{value => 4, type => 'radio'}], [1, 0, 0], {value => 3}) ], [