4 use Test::More tests => 11;
10 ok(!Mouse::is_class_loaded(), "is_class_loaded with no argument returns false");
11 ok(!Mouse::is_class_loaded(''), "can't load the empty class");
12 ok(!Mouse::is_class_loaded(\"foo"), "can't load a class name reference??");
14 throws_ok { Mouse::load_class() } qr/Invalid class name \(undef\)/;
15 throws_ok { Mouse::load_class('') } qr/Invalid class name \(\)/;
16 throws_ok { Mouse::load_class(\"foo") } qr/Invalid class name \(SCALAR\(\w+\)\)/;
18 ok(Mouse::load_class('Unsweetened'));
19 can_ok('Unsweetened' => 'unsweetened');
26 ok(Mouse::load_class('Class'), "this should not die!");
29 Mouse::load_class('FakeClassOhNo');
33 Mouse::load_class('SyntaxError');
34 } qr/Missing right curly/;