use Scalar::Util ();
BEGIN {
- use_ok('Moose::Util::TypeConstraints');
+ use_ok('Moose::Util::TypeConstraints');
}
my $SCALAR_REF = \(my $var);
ok(!defined Role($GLOB_REF), '... Role rejects anything which is not a Role');
ok(!defined Role($fh), '... Role rejects anything which is not a Role');
ok(!defined Role(qr/../), '... Role rejects anything which is not a Role');
-ok(!defined Role(bless {}, 'Foo'), '... Role accepts anything which is a Role');
+ok(!defined Role(bless {}, 'Foo'), '... Role rejects anything which is not a Role');
ok(defined Role(bless {}, 'My::Role'), '... Role accepts anything which is a Role');
-ok(!defined Role(undef), '... Role accepts anything which is a Role');
+ok(!defined Role(undef), '... Role rejects anything which is not a Role');
ok(!defined ClassName(0), '... ClassName rejects anything which is not a ClassName');
ok(!defined ClassName(100), '... ClassName rejects anything which is not a ClassName');