Import namespace-clean-0.07.tar.gz.
[p5sagit/namespace-clean.git] / t / 00-basic.t
CommitLineData
40aef9d6 1#!/usr/bin/env perl
2use warnings;
3use strict;
4
5use FindBin;
6use lib "$FindBin::Bin/lib";
7use Test::More tests => 4;
8
9use ExporterTest qw( foo bar );
10
11BEGIN {
12 ok( main->can('foo'), 'methods are there before cleanup' );
1a1be5dc 13 eval { require namespace::clean ;; namespace::clean->import };
40aef9d6 14 ok( !$@, 'module use ok' );
15}
16
17ok( !main->can($_), "$_ function removed" )
18 for qw( foo bar );
19