From: Graham Knop Date: Sun, 28 Jun 2015 07:32:44 +0000 (-0400) Subject: don't rely on VERSION method to retrieve version to test against X-Git-Tag: v2.000001~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3d4f7774b1c23f9e06a612d06e2b9683a884cc4c;p=p5sagit%2Fstrictures.git don't rely on VERSION method to retrieve version to test against --- diff --git a/t/strictures.t b/t/strictures.t index 411bcce..ad8ec10 100644 --- a/t/strictures.t +++ b/t/strictures.t @@ -56,7 +56,7 @@ my $v; eval { $v = strictures->VERSION; 1 } or diag $@; is $v, $strictures::VERSION, '->VERSION returns version correctly'; -my $next = int $v + 1; +my $next = int $strictures::VERSION + 1; eval qq{ use strictures $next; }; like $@, qr/strictures version $next required/,