]> git.vpit.fr Git - perl/modules/Scope-Upper.git/blobdiff - t/lib/Scope/Upper/TestGenerator.pm
This is 0.34
[perl/modules/Scope-Upper.git] / t / lib / Scope / Upper / TestGenerator.pm
index c71b8f36f2f7c925f79b0679a2b56fe8501e28f6..df175acf540437ed4f509e9a796fb56617fdd819 100644 (file)
@@ -32,13 +32,18 @@ my @blocks = (
  [ 'eval q[',   '];' ],
 );
 
-push @blocks, [ 'given (1) {', '}' ] if "$]" >= 5.010_001;
+push @blocks, [ 'given (1) {', '}' ] if "$]" >= 5.010_001 and "$]" < 5.037_010;
 
 my %exports = (
  verbose_is => \&verbose_is,
 );
 
 sub import {
+ if ("$]" >= 5.017_011) {
+  require warnings;
+  warnings->unimport('experimental::smartmatch');
+ }
+
  if ("$]" >= 5.010_001) {
   require feature;
   feature->import('switch');