The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more
123456789101112131415161718 use strict;use warnings FATAL => 'all';use lib 't/lib';use Std;check_test( sub { cmp_deeply('Foo', isa('Foo')) }, { actual_ok => 0, diag => <<EOM,Checking class of \$data with isa() got : 'Foo'expect : blessed into or ref of type 'Foo'EOM }, 'isa on a string');
use
strict;
warnings
FATAL
=>
'all'
;
lib
't/lib'
Std;
check_test(
sub
{ cmp_deeply(
'Foo'
, isa(
)) },
{
actual_ok
=> 0,
diag
<<EOM,
Checking class of \$data with isa()
got : 'Foo'
expect : blessed into or ref of type 'Foo'
EOM
},
'isa on a string'
);