use strict; use warnings; use Test::More 0.88; use HTML::Builder qw{ div p attr }; is eval "div { }", q{
}, 'no attributes'; is eval "div { id gets 'xx' }", q{
}, 'one attribute, gets'; is eval "div { attr { id => 'xx'}; }", q{
}, 'one attribute, attr'; is eval "div { attr { id => 'xx', foo => 'bar' }; }", q{
}, 'two attributes, attr'; is eval "div { attr { id => 'xx' }; foo gets 'bar' }", q{
}, 'two attributes, attr and gets'; done_testing;