X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fwhen.t;h=fd0ccdec89dd8648452d5507bce14f986ce666b8;hb=8c34b0efb19410754cf5983c951dbc59d6df0774;hp=d67fe9528089f21358da963f7fe104adc99c614e;hpb=f9d19a00aabbd2c4e62f6c1b833016822ac5492a;p=p5sagit%2FTry-Tiny.git diff --git a/t/when.t b/t/when.t index d67fe95..fd0ccde 100644 --- a/t/when.t +++ b/t/when.t @@ -1,20 +1,17 @@ -#!/usr/bin/perl - use strict; use warnings; use Test::More; BEGIN { - plan skip_all => "Perl 5.10 required" unless eval { require 5.010; 1 }; - plan tests => 6; + plan skip_all => 'Perl 5.010 is required' unless "$]" >= '5.010'; + plan tests => 5; } - -BEGIN { use_ok 'Try::Tiny' } +use Try::Tiny; use 5.010; -no if $] >= 5.017011, warnings => 'experimental::smartmatch'; +no if "$]" >= 5.017011, warnings => 'experimental::smartmatch'; my ( $foo, $bar, $other );