Bar->meta->apply(Quux->meta);
is_deeply(
Quux->meta->roles,
- [ Foo->meta, Foo->meta, Bar->meta ],
+ [ Foo->meta, Bar->meta ],
"duplicated Foo",
);
ensure_all_roles('Quux', qw(Foo Bar));
is_deeply(
Quux->meta->roles,
- [ Foo->meta, Foo->meta, Bar->meta ],
+ [ Foo->meta, Bar->meta ],
"unchanged, since all roles are already applied",
);
ensure_all_roles($obj, qw(Foo Bar));
is_deeply(
$obj->meta->roles,
- [ Foo->meta, Foo->meta, Bar->meta ],
+ [ Foo->meta, Bar->meta ],
"unchanged, since all roles are already applied",
);