projects
/
p5sagit/p5-mst-13.2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Another ex-PVBM assert
[p5sagit/p5-mst-13.2.git]
/
t
/
op
/
state.t
diff --git
a/t/op/state.t
b/t/op/state.t
index
1c4fc8c
..
411ffaa
100644
(file)
--- a/
t/op/state.t
+++ b/
t/op/state.t
@@
-338,7
+338,7
@@
foreach my $spam (@spam) {
{
my $x; # used to force a closure
my @f;
- push @f, sub { $x; state $s = $_[0]; $s } for 1..2;
+ push @f, sub { $x=0; state $s = $_[0]; $s } for 1..2;
is $f[0]->(1), 1;
is $f[0]->(2), 1;
is $f[1]->(3), 3;