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