diff options
author | Father Chrysostomos <sprout@cpan.org> | 2013-08-20 22:26:34 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2013-08-20 22:26:34 -0700 |
commit | 97568419b8fb18871d16841f30d7d9880460c8dc (patch) | |
tree | 73088d92ba4e5807b2ca5238b24ef7eb3d7847d2 | |
parent | 6e48bb3514b9f7e4c1083e8f490c30b195f044cf (diff) | |
download | perl-97568419b8fb18871d16841f30d7d9880460c8dc.tar.gz |
array.t: Tests for #7508 and #109726
-rw-r--r-- | t/op/array.t | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/t/op/array.t b/t/op/array.t index 86740a1cea..e30dcebb73 100644 --- a/t/op/array.t +++ b/t/op/array.t @@ -6,7 +6,7 @@ BEGIN { require 'test.pl'; } -plan (127); +plan (129); # # @foo, @bar, and @ary are also used from tie-stdarray after tie-ing them @@ -466,5 +466,12 @@ package peen { 'arylen_p magic does not stop isa magic from being copied'; } +# Test that &PL_sv_undef is not special in arrays +sub { + ok exists $_[0], + 'exists returns true for &PL_sv_undef elem [perl #7508]'; + is \$_[0], \undef, 'undef preserves identity in array [perl #109726]'; +}->(undef); + "We're included by lib/Tie/Array/std.t so we need to return something true"; |