X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FSub-Nary.git;a=blobdiff_plain;f=t%2F22-call.t;h=de288a665a83f28f16934f8d18731b5c0a5d2c6d;hp=fdd3812fcdfac933dafba9e12f01de1c75e2d5e3;hb=8a8dfb1c7d8ea124bf65333fa975667185b4cd73;hpb=08ec5acb4cc88d8cc10fec0520d8cd075c08fda1 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; }