]> git.vpit.fr Git - perl/modules/re-engine-Plugin.git/blobdiff - t/methods/stash.t
Importing re-engine-Plugin-0.04_01.tar.gz
[perl/modules/re-engine-Plugin.git] / t / methods / stash.t
index b719753e5daefa37211574444139daf4abed0610..34895e21b6aa348499b256366d95b9815dcd6f35 100644 (file)
@@ -5,7 +5,7 @@ Test the C<stash> 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->[$_]);