2 use Test::More 'no_plan';
4 BEGIN { chdir 't' if -d 't' };
7 my $Class = 'Package::Constants';
14 can_ok( $Class, $Func );
16 ### enable debug statements?
17 $Package::Constants::DEBUG = $Package::Constants::DEBUG = @ARGV ? 1 : 0;
24 $INC{'_test.pm'} = $0;
29 ### define various subs.. the first 3 are constants,
30 ### the others are not
32 use constant B => sub { 1 };
41 { my @list = $Class->$Func( $Pkg );
42 ok( scalar(@list), "Got a list of constants" );
43 is_deeply( \@list, \@Good, " Contains all expected entries" );
48 # c-indentation-style: bsd
50 # indent-tabs-mode: nil
52 # vim: expandtab shiftwidth=4: