fix Test::More prereq for done_testing
[p5sagit/Devel-Declare.git] / t / padstuff.t
CommitLineData
53e3ab32 1use strict;
2use warnings;
faaf0544 3use Test::More 0.88;
53e3ab32 4
5sub action (&) { return shift; }
6
7sub handle_action {
8 return (undef, undef, 'my ($self, $c) = (shift, shift);');
9}
10
11use Devel::Declare;
12use Devel::Declare action => [ DECLARE_NONE, \&handle_action ];
13
14my $args;
15
16my $a = action {
17 $args = join(', ', $self, $c);
18};
19
20$a->("SELF", "CONTEXT");
21
22is($args, "SELF, CONTEXT", "args passed ok");
b52072dc 23
24done_testing;