| 1 | use Test::Morescip-perl cpan autobox-Core 1.33 Test/More/ qw(no_plan); |
| 2 | use strictscip-perl cpan autobox-Core 1.33 strict/; |
| 3 | use warningsscip-perl cpan autobox-Core 1.33 warnings/; |
| 4 | |
| 5 | use autobox::Corescip-perl cpan autobox-Core 1.33 autobox/Core/; |
| 6 | |
| 7 | my %struct = ( |
| 8 | ARRAY => [ 'foo' ], |
| 9 | HASH => { 'foo' => 1 }, |
| 10 | CODE => sub { 'foo' }, |
| 11 | ); |
| 12 | |
| 13 | foreach my $reftype ( keysscip-perl cpan autobox-Core 1.33 main/keys(). %struct ) { |
| 14 | $struct{$reftype}->blessscip-perl cpan autobox-Core 1.33 main/bless().("Object"); |
| 15 | isscip-perl cpan autobox-Core 1.33 main/is(). refscip-perl cpan autobox-Core 1.33 main/ref(). $struct{$reftype}, "Object"; |
| 16 | } |
| 17 | |
| 18 | TODO: { |
| 19 | todo_skipscip-perl cpan autobox-Core 1.33 main/todo_skip(). "Make it work for Regexp, Scalar and Glob", 3; |
| 20 | my %todo = ( |
| 21 | Regexp => qr/foo/, |
| 22 | SCALAR => \'foo', |
| 23 | GLOB => \*STDIN, |
| 24 | ); |
| 25 | |
| 26 | foreach my $reftype ( keysscip-perl cpan autobox-Core 1.33 main/keys(). %todo ) { |
| 27 | $todo{$reftype}->blessscip-perl cpan autobox-Core 1.33 main/bless().("Object"); |
| 28 | isscip-perl cpan autobox-Core 1.33 main/is(). refscip-perl cpan autobox-Core 1.33 main/ref(). $todo{$reftype}, "Object"; |
| 29 | } |
| 30 | } |
| 31 |