$obj->option_accessor( size => 42 );
+ like( exception {
+ $obj->option_accessor;
+ }, qr/Cannot call accessor without at least 1 argument/, '... options added okay with defaults' );
+
is_deeply(
$obj->options, { quantity => 4, size => 42 },
'accessor as writer'
'kv returns lazy default'
);
-
$obj->_clear_options;
$obj->option_accessor( y => 2 );