]> git.vpit.fr Git - perl/modules/autovivification.git/blobdiff - t/21-array.t
Test "use autovivification"
[perl/modules/autovivification.git] / t / 21-array.t
index bf843d6e3f02b645bafa2b7c13b429b99354d8ad..eeb88117ae16a241099879b2924e4ca31a8553c4 100644 (file)
@@ -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->[0] # '', undef, [ ] # +exists
 $x # $x->[0] # '', undef, [ ] # +delete
 $x # $x->[0] # '', undef, [ ] # +store
 
+$x # $x->[0] # '', undef, [ ] # -fetch
+$x # $x->[0] # '', undef, [ ] # +fetch -fetch
+$x # $x->[0] # '', undef, undef # -fetch +fetch
+$x # $x->[0] # '', undef, undef # +fetch -exists
+
 $x # $x->[0] # qr/^Reference vivification forbidden/, undef, undef # +strict +fetch
 $x # $x->[0] # '', undef, [ ] # +strict +exists
 $x # $x->[0] # '', undef, [ ] # +strict +delete