X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F22-call.t;h=de288a665a83f28f16934f8d18731b5c0a5d2c6d;hb=ed86f98b23ca99add0f670107a3bea7c62819803;hp=fdd3812fcdfac933dafba9e12f01de1c75e2d5e3;hpb=1f19bf4c8d416851e583ef834e7ab605c2e2af32;p=perl%2Fmodules%2FSub-Nary.git diff --git a/t/22-call.t b/t/22-call.t index fdd3812..de288a6 100644 --- a/t/22-call.t +++ b/t/22-call.t @@ -80,6 +80,7 @@ my @tests = ( my $i = 1; for (@tests) { my $r = $sn->nary($_->[0]); - is_deeply($r, { $_->[1] => 1 }, 'call test ' . $i); + my $exp = ref $_->[1] ? $_->[1] : { $_->[1] => 1 }; + is_deeply($r, $exp, 'call test ' . $i); ++$i; }