The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more
|
{
}
{
}
{
}
my $ROLE = 'TestRole::Role' ;
for my $thing ( qw{ TestClass TestRole } ) {
my ( $_ok , $_nok ) = counters();
test_out $_ok ->( "$thing has a meta" );
meta_ok $thing ;
test_test "$thing is found to have a metaclass correctly" ;
}
for my $thing ( qw{ TestClass::Fail } ) {
my ( $_ok , $_nok ) = counters();
test_out $_nok ->( "$thing has a meta" );
test_fail 1;
meta_ok $thing ;
test_test "$thing is found to not have a metaclass correctly" ;
}
done_testing;
|