]> git.vpit.fr Git - perl/modules/Sub-Nary.git/blobdiff - t/22-call.t
Add support and tests for the get{pw,gr,host,net,proto,serv}* functions. Move ops...
[perl/modules/Sub-Nary.git] / t / 22-call.t
index fdd3812fcdfac933dafba9e12f01de1c75e2d5e3..de288a665a83f28f16934f8d18731b5c0a5d2c6d 100644 (file)
@@ -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;
 }