use strict; use warnings; use Test::More tests => 2; use HTML::FormFu; my $form = HTML::FormFu->new({ tt_args => { INCLUDE_PATH => 'share/templates/tt/xhtml' } }); my $foo = $form->element('Select')->name('foo')->value_range( [ 2000, 2010 ] ); my $bar = $form->element('Select')->name('bar') ->value_range( [ 'year', 2000, 2002 ] ); my $foo_xhtml = qq{
}; is( "$foo", $foo_xhtml ); my $bar_xhtml = qq{
}; is( "$bar", $bar_xhtml );