6 set_up_inc( qw(. ../lib) );
15 cmp_ok($1,'eq','a','context ' . curr_test());
23 my $before = curr_test();
25 my $after = curr_test();
27 cmp_ok($after-$before,'==',1,'foo called once')
28 or diag("nr tests: before=$before, after=$after");
31 $cx = qw[void scalar list][wantarray + defined wantarray];
33 $_ = sub { context(); BEGIN { } }->();
34 is($cx, 'scalar', 'context of { foo(); BEGIN {} }');