+is(
+ $form->check(foo => [undef]),
+ '<input id="foo_1" name="foo" type="checkbox" value="1">',
+ 'multipart check'
+);
+
+is_deeply(
+ [ $form->check(foo => [{value => undef}, undef]) ],
+ [
+ '<input id="foo" name="foo" type="checkbox">',
+ '<input id="foo_2" name="foo" type="checkbox" value="2">',
+ ],
+ 'multiple checkboxes'
+);
+
+is(
+ $form->check(foo => [undef], {id => ''}),
+ '<input name="foo" type="checkbox" value="1">',
+ 'idless checks'
+);
+
+is_deeply(
+ [ $form->check(
+ foo => [ {id => 'quux'}, {name => 'name'}, {value => 0}, {id => ''}, undef ], {id => 'bar'}
+ ) ],
+ [
+ '<input id="quux" name="foo" type="checkbox" value="1">',
+ '<input id="bar_2" name="name" type="checkbox" value="2">',
+ '<input id="bar_0" name="foo" type="checkbox" value="0">',
+ '<input name="foo" type="checkbox" value="4">',
+ '<input id="bar_5" name="foo" type="checkbox" value="5">',
+ ],
+ 'check overrides'
+);
+
+is_deeply(
+ [ $form->check(foo => ['bar', {name => 'bar'}], {name => 'ignored'}) ],
+ [
+ '<label><input id="foo_1" name="foo" type="checkbox" value="1"> bar</label>',
+ '<input id="foo_2" name="bar" type="checkbox" value="2">',
+ ],
+ 'checkbox names'
+);
+