diff options
author | Father Chrysostomos <sprout@cpan.org> | 2010-10-30 05:46:47 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2010-10-30 06:52:38 -0700 |
commit | 149314244dcca36804a9815561d32625351d81c6 (patch) | |
tree | 3207e8d79482c963007109fd4da00b355a400d9b /t/mro | |
parent | dff7d458d1908c480f5e02c7a7de6e1e157b0e65 (diff) | |
download | perl-149314244dcca36804a9815561d32625351d81c6.tar.gz |
To-do tests for isarev (more to come)
Diffstat (limited to 't/mro')
-rw-r--r-- | t/mro/isarev.t | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/t/mro/isarev.t b/t/mro/isarev.t new file mode 100644 index 0000000000..f93c0466e5 --- /dev/null +++ b/t/mro/isarev.t @@ -0,0 +1,35 @@ +#!./perl + +BEGIN { + unless (-d 'blib') { + chdir 't' if -d 't'; + @INC = '../lib'; + } + require q(./test.pl); +} + +use strict; +use warnings; +plan(tests => 3); + +use mro; + +sub i { + @_ = @_; + $_[0] = "@{mro::get_isarev $_[0]}"; + $_[1] = "@{$_[1]}"; + goto &is; +} + +$::TODO = "[perl #75176] isarev leeks (and onions)"; + +@Huskey::ISA = "Dog"; +@Dog::ISA = "Canid"; +@Some::Brand::Name::ISA = "Dog::Bone"; +@Dog::Bone::ISA = "Treat"; +@MyCollar::ISA = "Dog::Collar::Leather"; +@Dog::Collar::Leather::ISA = "Collar"; +delete $::{"Dog::"}; +i Canid=>[], "deleting a stash elem removes isarev entries"; +i Treat=>[], "deleting a nested stash elem removes isarev entries"; +i Collar=>[], "deleting a doubly nested stash elem removes isarev entries"; |