X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Fre-engine-Plugin.git;a=blobdiff_plain;f=t%2Fmethods%2Fstash.t;h=34895e21b6aa348499b256366d95b9815dcd6f35;hp=b719753e5daefa37211574444139daf4abed0610;hb=dd88e700bfcc92fc03db9d994ec747ca1c14ade7;hpb=447aa9bcb55632cf669454868679169602a28fe2 diff --git a/t/methods/stash.t b/t/methods/stash.t index b719753..34895e2 100644 --- a/t/methods/stash.t +++ b/t/methods/stash.t @@ -5,7 +5,7 @@ Test the C method =cut use strict; -use Test::More tests => 4; +use Test::More tests => 5; use re::engine::Plugin ( comp => sub { @@ -19,6 +19,9 @@ use re::engine::Plugin ( my ($re, $str) = @_; my $stash = $re->stash; + my $ret = $re->stash( $stash ); + ok(!$ret, "stash returns no value on assignment"); + my %h = qw( 0 a 1 o 2 e 3 u ); for (keys %h) { is($h{$_}, $stash->[$_]);