]> git.vpit.fr Git - perl/modules/autovivification.git/blobdiff - t/21-array.t
Classify aliasing constructs in the "store" category
[perl/modules/autovivification.git] / t / 21-array.t
index 744c4927549ff2bb3a2399d3bda5af4a3cc078d8..2930304683b5f42810e973916550222eecd4a031 100644 (file)
@@ -94,18 +94,18 @@ $x->[0]->[1] = 1 # $x->[2]->[3] # '', undef, [ [ undef, 1 ], undef, [ ] ] # +str
 --- aliasing ---
 
 $x # 1 for $x->[0]; () # '', undef, [ undef ]
-$x # 1 for $x->[0]; () # '', undef, undef #
-$x # 1 for $x->[0]; () # '', undef, undef # +fetch
+$x # 1 for $x->[0]; () # '', undef, [ undef ] #
+$x # 1 for $x->[0]; () # '', undef, [ undef ] # +fetch
 $x # 1 for $x->[0]; () # '', undef, [ undef ] # +exists
 $x # 1 for $x->[0]; () # '', undef, [ undef ] # +delete
-$x # 1 for $x->[0]; () # '', undef, [ undef ] # +store
+$x # 1 for $x->[0]; () # qr/^Can't vivify reference/, undef, undef # +store
 
 $x # $_ = 1 for $x->[0]; () # '', undef, [ 1 ]
-$x # $_ = 1 for $x->[0]; () # '', undef, undef #
-$x # $_ = 1 for $x->[0]; () # '', undef, undef # +fetch
+$x # $_ = 1 for $x->[0]; () # '', undef, [ 1 ] #
+$x # $_ = 1 for $x->[0]; () # '', undef, [ 1 ] # +fetch
 $x # $_ = 1 for $x->[0]; () # '', undef, [ 1 ] # +exists
 $x # $_ = 1 for $x->[0]; () # '', undef, [ 1 ] # +delete
-$x # $_ = 1 for $x->[0]; () # '', undef, [ 1 ] # +store
+$x # $_ = 1 for $x->[0]; () # qr/^Can't vivify reference/, undef, undef # +store
 
 $x->[0] = 1 # 1 for $x->[0]; () # '', undef, [ 1 ] # +fetch
 $x->[0] = 1 # 1 for $x->[1]; () # '', undef, [ 1, undef ] # +fetch