X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F23-branch.t;h=8bffe50fdbbf93f569681ec1c1b8a21ce2dccf66;hb=ed86f98b23ca99add0f670107a3bea7c62819803;hp=f806089a649ded05b90ba99687fa37822f5d3056;hpb=4b846088d0ffe4f979b145ec2af821922bd5c7af;p=perl%2Fmodules%2FSub-Nary.git diff --git a/t/23-branch.t b/t/23-branch.t index f806089..8bffe50 100644 --- a/t/23-branch.t +++ b/t/23-branch.t @@ -64,7 +64,8 @@ my @tests = ( 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; }