6 use lib "$FindBin::Bin/lib";
7 use Test::More tests => 6;
9 { package ExceptWithArray;
10 use ExporterTest qw( foo bar qux );
11 use namespace::clean -except => [qw( foo bar )];
13 ok( ExceptWithArray->can('foo'), 'first of except list still there');
14 ok( ExceptWithArray->can('bar'), 'second of except list still there');
15 ok(!ExceptWithArray->can('qux'), 'item not in except list was removed');
17 { package ExceptWithSingle;
18 use ExporterTest qw( foo bar qux );
19 use namespace::clean -except => 'qux';
21 ok(!ExceptWithSingle->can('foo'), 'first item not in except still there');
22 ok(!ExceptWithSingle->can('bar'), 'second item not in except still there');
23 ok( ExceptWithSingle->can('qux'), 'except item was removed');