Revision history for Sub-Name
{{$NEXT}}
+ - skip quote-separator tests on newer perls that deprecate this behaviour
0.26 2019-10-05 22:23:12Z
- no changes since 0.25
use strict;
use warnings;
-use Test::More tests => 1;
+use Test::More;
use if $ENV{AUTHOR_TESTING}, 'Test::Warnings';
use Sub::Name;
+plan skip_all => 'single quote as a package separator has been removed'
+ if "$]" gt '5.041001';
+plan skip_all => 'single quote as a package separator has been deprecated'
+ if "$]" gt '5.037009';
+
my $sub = sub { (caller(0))[3] };
subname "foo::quz'bar::baz", $sub;
"foo::quz::bar::baz",
'correctly parsed single quote from name where the last separator is ::',
);
+
+done_testing;