]> git.vpit.fr Git - perl/modules/Sub-Nary.git/blobdiff - t/23-branch.t
stat() can also return no arguments if the file can't be found. Hopefully, our %ops...
[perl/modules/Sub-Nary.git] / t / 23-branch.t
index f806089a649ded05b90ba99687fa37822f5d3056..914b975cfa319bf4541b960f32320b66a63f3863 100644 (file)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 14;
+use Test::More tests => 16;
 
 use Sub::Nary;
 
@@ -59,6 +59,9 @@ my @tests = (
  [ \&ret1234, { map { $_ => 0.25 } 1 .. 4 } ],
 
  [ \&retinif, { 2 => 1 } ],
+
+ [ sub { <*.*> },   { list => 1 / 3, 1 => 2 / 3 } ],
+ [ sub { stat $0 }, { 0 => 0.5, 13 => 0.5 } ],
 );
 
 my $i = 1;