From: Alex Date: Mon, 22 Mar 2010 14:14:17 +0000 (+0300) Subject: move use test to BEGIN block X-Git-Tag: Try-Tiny-0.05~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e1e2d16ac877cc343735f6a5f0ed05ffbb96abd3;p=p5sagit%2FTry-Tiny.git move use test to BEGIN block --- diff --git a/t/given_when.t b/t/given_when.t index faee8c4..f87945f 100644 --- a/t/given_when.t +++ b/t/given_when.t @@ -7,10 +7,9 @@ use Test::More; BEGIN { plan skip_all => "Perl 5.10 is required" unless eval { require 5.010 }; + use_ok("Try::Tiny"); } -use ok "Try::Tiny"; - my ( $error, $topic ); given ("foo") {