X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Fre-engine-Plugin.git;a=blobdiff_plain;f=t%2Fmethods%2Fstash.t;h=9083263566071642d0583946bde5707f4f3efbd6;hp=b719753e5daefa37211574444139daf4abed0610;hb=86e082409eeb8df843893486f92273c0e46d7637;hpb=5b5f13004fe16542da2b113b9b45157ceccef343 diff --git a/t/methods/stash.t b/t/methods/stash.t index b719753..9083263 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,8 @@ 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->[$_]);