X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F23-branch.t;h=8bffe50fdbbf93f569681ec1c1b8a21ce2dccf66;hb=ed86f98b23ca99add0f670107a3bea7c62819803;hp=cfc87c2f1b575eda0752b70bc29aa2dacd939680;hpb=fb7bf9d912eada90e9d1c7f8da68ae8e76f63111;p=perl%2Fmodules%2FSub-Nary.git diff --git a/t/23-branch.t b/t/23-branch.t index cfc87c2..8bffe50 100644 --- a/t/23-branch.t +++ b/t/23-branch.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 15; +use Test::More tests => 14; use Sub::Nary; @@ -59,14 +59,13 @@ my @tests = ( [ \&ret1234, { map { $_ => 0.25 } 1 .. 4 } ], [ \&retinif, { 2 => 1 } ], - - [ sub { <*.*> }, { list => 1 / 3, 1 => 2 / 3 } ], ); 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; }