perlunifaq, uniintro: fix for 80 col display
[p5sagit/p5-mst-13.2.git] / cpan / Module-Pluggable / t / 10innerpack_super.t
CommitLineData
183ac38d 1#!perl -wT
2
3use Test::More tests => 3;
4use strict;
5use_ok('Devel::InnerPackage');
6Bar->whee;
7is_deeply([Devel::InnerPackage::list_packages("Bar")],[], "Don't pick up ::SUPER pseudo stash");
8is_deeply([Devel::InnerPackage::list_packages("Foo")],['Foo::Bar'], "Still pick up other inner package");
9
10package Foo;
11
12sub whee {
13 1;
14}
15
16package Foo::Bar;
17
18sub whee {}
19
20package Bar;
21use base 'Foo';
22
23sub whee {
24 shift->SUPER::whee;
25 2;
26}
27
28
291;