$ops{$_} = 'list' for qw/padav/;
$ops{$_} = 'list' for qw/padhv rv2hv/;
$ops{$_} = 'list' for qw/padany flip match entereval readline/;
+$ops{each} = { 0 => 0.5, 2 => 0.5 };
$ops{stat} = { 0 => 0.5, 13 => 0.5 };
$ops{caller} = sub { my @a = caller 0; scalar @a }->();
$ops{localtime} = do { my @a = localtime; scalar @a };
use strict;
use warnings;
-use Test::More tests => 53;
+use Test::More tests => 55;
use Sub::Nary;
[ sub { return @h{qw/a b/} }, 2 ],
[ sub { return @h{@a[1 .. 3]} }, 3 ],
[ sub { return @h{@a[$y .. 3]} }, 'list' ],
+ [ sub { return keys %h }, 'list' ],
+ [ sub { return values %h }, 'list' ],
[ sub { return $x, $a[3], $h{c} }, 3 ],
[ sub { return $x, @a }, 'list' ],
use strict;
use warnings;
-use Test::More tests => 39;
+use Test::More tests => 41;
use Sub::Nary;
[ sub { %h }, 'list' ],
[ sub { $h{a} }, 1 ],
[ sub { @h{qw/a b/} }, 2 ],
+ [ sub { keys %h }, 'list' ],
+ [ sub { values %h }, 'list' ],
[ sub { $x, $a[3], $h{c} }, 3 ],
[ sub { $x, @a }, 'list' ],
use strict;
use warnings;
-use Test::More tests => 16;
+use Test::More tests => 17;
use Sub::Nary;
[ \&retinif, { 2 => 1 } ],
- [ sub { <*.*> }, { list => 1 / 3, 1 => 2 / 3 } ],
+ [ sub { each %h }, { 0 => 0.5, 2 => 0.5 } ],
[ sub { stat $0 }, { 0 => 0.5, 13 => 0.5 } ],
+
+ [ sub { <*.*> }, { list => 1 / 3, 1 => 2 / 3 } ],
);
my $i = 1;