In list context return a list of values in the hash for the given keys.
In scalar context returns the value for the last key specified.
-=item B<set($key =E<gt> $value, $key2 =E<gt> $value2 ...)>
+=item B<set($key =E<gt> $value, $key2 =E<gt> $value2...)>
Sets the elements in the hash to the given values.
-=item B<delete($key)>
+=item B<delete($key, $key2, $key3...)>
-Removes the element with the given key.
+Removes the elements with the given keys.
=item B<keys>
use strict;
use warnings;
-use Test::More tests => 47;
+use Test::More tests => 46;
use Test::Exception;
use Test::Moose 'does_ok';
'... deleted the option okay';
lives_ok {
- $stuff->delete_option('oink');
+ $stuff->delete_option('oink','xxy');
}
-'... deleted the option okay';
-
-lives_ok {
- $stuff->delete_option('xxy');
-}
-'... deleted the option okay';
+'... deleted multiple option okay';
is( $stuff->num_options, 1, '... we have 1 option(s)' );
is_deeply( $stuff->options, { foo => 'bar' }, '... got more options now' );