This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Strip whitespace from the beginning of static_ext:
[perl5.git] / t / Module_Pluggable / 03diffname.t
CommitLineData
3f7169a2
RGS
1#!perl -w
2
3use strict;
4use FindBin;
5use lib "$FindBin::Bin/lib";
6use Test::More tests => 3;
7
8my $foo;
9ok($foo = MyTest->new());
10
11my @plugins;
12my @expected = qw(MyTest::Plugin::Bar MyTest::Plugin::Foo MyTest::Plugin::Quux::Foo);
13ok(@plugins = sort $foo->foo);
14is_deeply(\@plugins, \@expected);
15
16
17
18package MyTest;
19
20use strict;
21use Module::Pluggable ( sub_name => 'foo');
22
23
24sub new {
25 my $class = shift;
26 return bless {}, $class;
27
28}
291;
30