added eval carrols bug with sub exporter
[gitmo/MooseX-Types.git] / t / 14_compatibility-sub-exporter.t
CommitLineData
6974ed90 1BEGIN {
2 use strict;
3 use warnings;
4 use Test::More;
5 use Test::Exception;
6 use FindBin;
7 use lib "$FindBin::Bin/lib";
8
9 eval "use Sub::Exporter";
10 plan $@
11 ? ( skip_all => "Tests require Sub::Exporter" )
12 : ( tests => 3 );
13}
14
15use SubExporterCompatibility qw(MyStr);
16
17ok MyStr->check('aaa'), "Correctly passed";
18ok !MyStr->check([1]), "Correctly fails";
19ok something(), "Found the something method";
20