use strict;
use warnings;
-use Test::More tests => 32;
+use Test::More tests => 33;
use Test::Exception;
BEGIN {
isa => 'HashRef[Str]',
default => sub { {} },
provides => {
- 'set' => 'set_option',
- 'get' => 'get_option',
- 'empty' => 'has_options',
- 'count' => 'num_options',
- 'clear' => 'clear_options',
- 'delete' => 'delete_option',
+ 'set' => 'set_option',
+ 'get' => 'get_option',
+ 'has_items' => 'has_options',
+ 'is_empty' => 'no_options',
+ 'count' => 'num_options',
+ 'clear' => 'clear_options',
+ 'delete' => 'delete_option',
}
);
}
set_option
get_option
has_options
+ no_options
num_options
delete_option
clear_options
];
-ok(!$stuff->has_options, '... we have no options');
+ok($stuff->no_options, '... we have no options');
is($stuff->num_options, 0, '... we have no options');
is_deeply($stuff->options, {}, '... no options yet');