X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F20-hash.t;h=760f9e14183cb452c8436ea2d02ec71f0bb47425;hb=b47bb780966680623d37ce471e44f64ae12a5863;hp=e7a1703e9508e5b7b4f89bf4c77b630ef5e2d9c7;hpb=337a1b18d78b1f8abc831159aadb8a0ff42baf68;p=perl%2Fmodules%2Fautovivification.git diff --git a/t/20-hash.t b/t/20-hash.t index e7a1703..760f9e1 100644 --- a/t/20-hash.t +++ b/t/20-hash.t @@ -94,18 +94,18 @@ $x->{a}->{b} = 1 # $x->{c}->{d} # '', undef, { a => { b => 1 }, c => { } } --- aliasing --- $x # 1 for $x->{a}; () # '', undef, { a => undef } -$x # 1 for $x->{a}; () # '', undef, undef # -$x # 1 for $x->{a}; () # '', undef, undef # +fetch +$x # 1 for $x->{a}; () # '', undef, { a => undef } # +$x # 1 for $x->{a}; () # '', undef, { a => undef } # +fetch $x # 1 for $x->{a}; () # '', undef, { a => undef } # +exists $x # 1 for $x->{a}; () # '', undef, { a => undef } # +delete -$x # 1 for $x->{a}; () # '', undef, { a => undef } # +store +$x # 1 for $x->{a}; () # qr/^Can't vivify reference/, undef, undef # +store $x # $_ = 1 for $x->{a}; () # '', undef, { a => 1 } -$x # $_ = 1 for $x->{a}; () # '', undef, undef # -$x # $_ = 1 for $x->{a}; () # '', undef, undef # +fetch +$x # $_ = 1 for $x->{a}; () # '', undef, { a => 1 } # +$x # $_ = 1 for $x->{a}; () # '', undef, { a => 1 } # +fetch $x # $_ = 1 for $x->{a}; () # '', undef, { a => 1 } # +exists $x # $_ = 1 for $x->{a}; () # '', undef, { a => 1 } # +delete -$x # $_ = 1 for $x->{a}; () # '', undef, { a => 1 } # +store +$x # $_ = 1 for $x->{a}; () # qr/^Can't vivify reference/, undef, undef # +store $x->{a} = 1 # 1 for $x->{a}; () # '', undef, { a => 1 } # +fetch $x->{a} = 1 # 1 for $x->{b}; () # '', undef, { a => 1, b => undef } # +fetch