X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F21-array.t;h=2930304683b5f42810e973916550222eecd4a031;hb=b47bb780966680623d37ce471e44f64ae12a5863;hp=744c4927549ff2bb3a2399d3bda5af4a3cc078d8;hpb=337a1b18d78b1f8abc831159aadb8a0ff42baf68;p=perl%2Fmodules%2Fautovivification.git diff --git a/t/21-array.t b/t/21-array.t index 744c492..2930304 100644 --- a/t/21-array.t +++ b/t/21-array.t @@ -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