refactoring nested ifs
[gitmo/Moo.git] / t / load_module_error.t
CommitLineData
49d332df 1use strictures;
2
3package load_module_error;
4
5use Test::More;
6
7use lib 't/lib';
8
9eval "use sub_class;";
10
11ok $@, "got a crash";
12unlike $@, qr/Unknown error/, "it came with a useful error message";
13
14done_testing;