From: matthewt Date: Fri, 29 Jun 2007 02:32:08 +0000 (+0000) Subject: test now uses Test::More X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=efbffedac2b23de7c6a6f67a929ccc7027faf338;p=p5sagit%2FDevel-Declare.git test now uses Test::More git-svn-id: http://dev.catalyst.perl.org/repos/bast/trunk/Devel-Declare@3549 bd8105ee-0ff8-0310-8827-fb3f25b6796d --- diff --git a/t/simple.t b/t/simple.t index 266bb8b..7dfc49c 100644 --- a/t/simple.t +++ b/t/simple.t @@ -1,7 +1,6 @@ use strict; use warnings; - -print "1..1\n"; +use Test::More 'no_plan'; sub method { my ($pack, $name, $sub) = @_; @@ -13,11 +12,7 @@ use Devel::Declare 'method'; 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));