git-svn-id: http://dev.catalyst.perl.org/repos/bast/trunk/Devel-Declare@3549
bd8105ee-0ff8-0310-8827-fb3f25b6796d
use strict;
use warnings;
-
-print "1..1\n";
+use Test::More 'no_plan';
sub method {
my ($pack, $name, $sub) = @_;
method bar {
my $str = join(', ', @_);
- if ($str eq 'main, baz, quux') {
- print "ok 1\n";
- } else {
- print "not ok 1\n";
- }
+ is($str, 'main, baz, quux', 'Method args ok');
};
__PACKAGE__->bar(qw(baz quux));