8 if( $ENV{PERL_CORE} ) {
15 use ExtUtils::MakeMaker;
17 use Test::More "no_plan";
19 my $is_of_type = \&ExtUtils::MakeMaker::_is_of_type;
27 [bless({}, "Foo"), "Foo", 1],
28 [bless({}, "Bar"), "Foo", 0],
29 [bless([], "Foo"), "", 0],
30 [bless([], "Foo"), "HASH", 0],
31 [bless([], "Foo"), "ARRAY", 1],
34 for my $test (@tests) {
35 my($thing, $type, $want) = @$test;
38 local $SIG{__DIE__} = sub { fail("sigdie should be ignored") };
39 is !!$is_of_type->($thing, $type), !!$want, qq[_is_of_type($thing, '$type'): $want];