The real fix for RT#73402 (abaondon tie %^H entirely), FC++
[p5sagit/namespace-clean.git] / t / 03-unimport.t
CommitLineData
9b680ffe 1#!/usr/bin/env perl
2use warnings;
3use strict;
4
5use FindBin;
6use lib "$FindBin::Bin/lib";
7use Test::More tests => 6;
8
9use_ok('Unimport');
10
11ok( !Unimport->can('foo'),
12 'first function correctly removed' );
13ok( Unimport->can('bar'),
14 'excluded method still in package' );
15ok( !Unimport->can('baz'),
16 'second function correctly removed' );
17ok( Unimport->can('qux'),
18 'last method still in package' );
19is( Unimport->qux, 23,
20 'all functions are still bound' );
21