use Class::MOP;
use lib 't/lib';
-ok ! exception {
+is( exception {
Class::MOP::load_class('TestClassLoaded::Sub');
-};
+}, undef );
TestClassLoaded->can('a_method');
-ok ! exception {
+is( exception {
Class::MOP::load_class('TestClassLoaded');
-};
+}, undef );
-ok ! exception {
+is( exception {
TestClassLoaded->a_method;
-};
+}, undef );
done_testing;