From: Karen Etheridge Date: Fri, 16 Aug 2024 21:58:16 +0000 (-0700) Subject: given/when are removed in 5.41.3 X-Git-Tag: v0.32~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c8e3a4714112efb110f4b0fa7a96e2d115f03305;p=p5sagit%2FTry-Tiny.git given/when are removed in 5.41.3 --- diff --git a/Changes b/Changes index d88924b..91b57f9 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,7 @@ Revision history for Try-Tiny {{$NEXT}} + - skip given, when tests on perls >= 5.41.3 which removed these constructs 0.31 2021-11-23 20:29:12Z - plug Syntax::Keyword::Try and Feature::Compat::Try in the docs diff --git a/t/given_when.t b/t/given_when.t index d12fa9c..dd4ae3f 100644 --- a/t/given_when.t +++ b/t/given_when.t @@ -6,6 +6,7 @@ use Test::More; BEGIN { plan skip_all => 'Perl 5.010 is required' unless "$]" >= '5.010'; plan skip_all => 'Tests skipped on perl 5.27.{7,8,9} when smartmatch behaviour changed' if "$]" >= '5.027007' and "$]" < '5.027010'; + plan skip_all => 'given/when have been removed in perl 5.42' if "$]" >= '5.041003'; plan tests => 2; } diff --git a/t/when.t b/t/when.t index 1a45db1..1c28978 100644 --- a/t/when.t +++ b/t/when.t @@ -6,6 +6,7 @@ use Test::More; BEGIN { plan skip_all => 'Perl 5.010 is required' unless "$]" >= '5.010'; plan skip_all => 'Tests skipped on perl 5.27.{7,8,9} when smartmatch behaviour changed' if "$]" >= '5.027007' and "$]" < '5.027010'; + plan skip_all => 'given/when have been removed in perl 5.42' if "$]" >= '5.041003'; plan tests => 5; }