X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F20-hash.t;h=aac9f975621c2580c2b10c13254c8a629afa8787;hb=refs%2Ftags%2Fv0.02;hp=d4cf269294168217a144db58494a7349c0aefdf3;hpb=7b43fe3caca2977c57aea3f812131d16378cab46;p=perl%2Fmodules%2Fautovivification.git diff --git a/t/20-hash.t b/t/20-hash.t index d4cf269..aac9f97 100644 --- a/t/20-hash.t +++ b/t/20-hash.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 6 * 3 * 270; +use Test::More tests => 6 * 3 * 274; use lib 't/lib'; use autovivification::TestCases; @@ -25,6 +25,11 @@ $x # $x->{a} # '', undef, { } # +exists $x # $x->{a} # '', undef, { } # +delete $x # $x->{a} # '', undef, { } # +store +$x # $x->{a} # '', undef, { } # -fetch +$x # $x->{a} # '', undef, { } # +fetch -fetch +$x # $x->{a} # '', undef, undef # -fetch +fetch +$x # $x->{a} # '', undef, undef # +fetch -exists + $x # $x->{a} # qr/^Reference vivification forbidden/, undef, undef # +strict +fetch $x # $x->{a} # '', undef, { } # +strict +exists $x # $x->{a} # '', undef, { } # +strict +delete