14 cmp_ok($1,'eq','a','context ' . curr_test());
22 my $before = curr_test();
24 my $after = curr_test();
26 cmp_ok($after-$before,'==',1,'foo called once')
27 or diag("nr tests: before=$before, after=$after");
30 $cx = qw[void scalar list][wantarray + defined wantarray];
32 $_ = sub { context(); BEGIN { } }->();
33 is($cx, 'scalar', 'context of { foo(); BEGIN {} }');