X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FVariable-Magic.git;a=blobdiff_plain;f=t%2F35-stash.t;fp=t%2F35-stash.t;h=a9600bc44d3f6b1a73e6ec5282fb706fcb5166ec;hp=5ec42fd1f0826b7ccea1847b72b38be69435c318;hb=960ba5758e007ff977089a354aacaf3d99c5a17f;hpb=d121df9950bb546459cc9b38a1cb28063381e252 diff --git a/t/35-stash.t b/t/35-stash.t index 5ec42fd..a9600bc 100644 --- a/t/35-stash.t +++ b/t/35-stash.t @@ -114,9 +114,12 @@ cast %Hlagh::, $wiz; eval q{ Hlagh->shoot() }; is $@, '', 'stash: valid method call ran fine'; - is_deeply \%mg, { - fetch => [ qw ], - }, 'stash: valid method call'; + my %expected = ( fetch => [ qw ] ); + # Typeglob reification may cause a store in 5.28+ + if ("$]" >= 5.027 && %mg == 2) { + $expected{store} = $expected{fetch}; + } + is_deeply \%mg, \%expected, 'stash: valid method call'; } {