use strict;
use warnings;
-use Test::More tests => 16;
+use Test::More tests => 14;
use Sub::Nary;
[ \&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;
for (@tests) {
my $r = $sn->nary($_->[0]);
- is_deeply($r, $_->[1], 'branch test ' . $i);
+ my $exp = ref $_->[1] ? $_->[1] : { $_->[1] => 1 };
+ is_deeply($r, $exp, 'branch test ' . $i);
++$i;
}