Get tests running under -T (cosmetics only)
[p5sagit/namespace-clean.git] / t / 03-unimport.t
CommitLineData
9b680ffe 1use warnings;
2use strict;
3
726710b6 4use lib 't/lib';
9b680ffe 5use Test::More tests => 6;
6
7use_ok('Unimport');
8
9ok( !Unimport->can('foo'),
10 'first function correctly removed' );
11ok( Unimport->can('bar'),
12 'excluded method still in package' );
13ok( !Unimport->can('baz'),
14 'second function correctly removed' );
15ok( Unimport->can('qux'),
16 'last method still in package' );
17is( Unimport->qux, 23,
18 'all functions are still bound' );
19