use FindBin;
use File::Spec::Functions;
-use Test::More tests => 14;
+use Test::More;
use Test::Exception;
use Scalar::Util;
shift->meta->mymetaclass_attributes;
}
- ::lives_ok{ Baz->meta->superclasses('Bar');
- } '... we survive the metaclass incompatibility test';
+ ::lives_ok{ Baz->meta->superclasses('Bar') }
+ '... we survive the metaclass incompatibility test';
}
{
my $meta = Baz->meta;
ok( $meta->is_mutable, '... Baz is mutable' );
- isnt(
+ is(
Scalar::Util::blessed( Foo->meta ),
Scalar::Util::blessed( Bar->meta ),
- 'Foo and Bar immutable metaclasses do not match'
+ 'Foo and Bar immutable metaclasses match'
);
is( Scalar::Util::blessed($meta), 'MyMetaClass',
'Baz->meta blessed as MyMetaClass' );
lives_ok { $meta->make_mutable } "Baz is now mutable";
ok( $meta->is_mutable, '... Baz is mutable again' );
}
+
+done_testing;