isa => 'ArrayRef[Int]',
default => sub { [] },
provides => {
- 'count' => 'num_options',
- 'empty' => 'has_options',
- 'map' => 'map_options',
- 'grep' => 'filter_options',
- 'find' => 'find_option',
+ 'count' => 'num_options',
+ 'has_items' => 'has_options',
+ 'map' => 'map_options',
+ 'grep' => 'filter_options',
+ 'find' => 'find_option',
}
);
}
isa_ok($options, 'MooseX::AttributeHelpers::Collection::List');
is_deeply($options->provides, {
- 'map' => 'map_options',
- 'grep' => 'filter_options',
- 'find' => 'find_option',
- 'count' => 'num_options',
- 'empty' => 'has_options',
-}, '... got the right provies mapping');
+ 'map' => 'map_options',
+ 'grep' => 'filter_options',
+ 'find' => 'find_option',
+ 'count' => 'num_options',
+ 'has_items' => 'has_options',
+}, '... got the right provides mapping');
is($options->type_constraint->type_parameter, 'Int', '... got the right container type');