From: Matt S Trout Date: Fri, 29 Jun 2007 02:32:08 +0000 (+0000) Subject: test now uses Test::More X-Git-Tag: 0.005000~140 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=974f544246b897eb9932cc0c2c2ca67b3eaf8fd3;p=p5sagit%2FDevel-Declare.git test now uses Test::More --- 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));