Skip to content

Commit

Permalink
fix B::Deparse tests
Browse files Browse the repository at this point in the history
  • Loading branch information
book committed Dec 16, 2024
1 parent 9c4ad7f commit bcfbac3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions lib/B/Deparse-core.t
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ use warnings;
use strict;
use Test::More;

use feature (sprintf(":%vd", $^V)); # to avoid relying on the feature
# logic to add CORE::
# to avoid relying on the feature logic to add CORE::
use feature (sprintf(":%s", $^V =~ /^v(5\.\d+|\d+)/g));

use B::Deparse;
my $deparse = B::Deparse->new();

Expand Down
4 changes: 2 additions & 2 deletions lib/B/Deparse.t
Original file line number Diff line number Diff line change
Expand Up @@ -1645,7 +1645,7 @@ CORE::evalbytes '';
####
# feature features when feature has been disabled by use VERSION
# CONTEXT no warnings 'deprecated';
use feature (sprintf(":%vd", $^V));
use feature (sprintf(":%s", $^V =~ /^v(5\.\d+|\d+)/g));
use 1;
CORE::say $_;
CORE::state $x;
Expand All @@ -1660,7 +1660,7 @@ CORE::evalbytes '';
# (the above test with CONTEXT, and the output is equivalent but different)
# CONTEXT use feature ':5.10'; no warnings 'deprecated';
# feature features when feature has been disabled by use VERSION
use feature (sprintf(":%vd", $^V));
use feature (sprintf(":%s", $^V =~ /^v(5\.\d+|\d+)/g));
use 1;
CORE::say $_;
CORE::state $x;
Expand Down

0 comments on commit bcfbac3

Please sign in to comment.