Skip to content

Commit

Permalink
parent: don't test ' in names from 5.41.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycoz committed Aug 7, 2024
1 parent 16745a0 commit acb9534
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cpan/parent/lib/parent.pm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package parent;
use strict;

our $VERSION = '0.241';
our $VERSION = '0.241_001';

sub import {
my $class = shift;
Expand Down
6 changes: 5 additions & 1 deletion cpan/parent/t/compile-time-file.t
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use lib 't/lib';

{
package Child3;
use parent "Dummy'Outside";
use if $] < 5.041, parent => "Dummy'Outside";
}

my $obj = {};
Expand All @@ -39,9 +39,13 @@ isa_ok $obj, 'Dummy::InlineChild';
can_ok $obj, 'exclaim';
is $obj->exclaim, "I CAN FROM Dummy::InlineChild", 'Inheritance is set up correctly for inlined classes';

SKIP:
{
skip "No ' in names from 5.041", 3 if $] >= 5.041;
$obj = {};
bless $obj, 'Child3';
isa_ok $obj, 'Dummy::Outside';
can_ok $obj, 'exclaim';
is $obj->exclaim, "I CAN FROM Dummy::Outside", "Inheritance is set up correctly for classes inherited from via '";

}

0 comments on commit acb9534

Please sign in to comment.