test now uses Test::More
[p5sagit/Devel-Declare.git] / t / simple.t
CommitLineData
94caac6e 1use strict;
2use warnings;
974f5442 3use Test::More 'no_plan';
94caac6e 4
5sub method {
6 my ($pack, $name, $sub) = @_;
7 no strict 'refs';
8 *{"${pack}::${name}"} = $sub;
9}
10
11use Devel::Declare 'method';
12
13method bar {
14 my $str = join(', ', @_);
974f5442 15 is($str, 'main, baz, quux', 'Method args ok');
94caac6e 16};
17
18__PACKAGE__->bar(qw(baz quux));