projects
/
p5sagit/Devel-Size.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
9847261
)
Reinstate weaken(), inadvertently removed by 8c394e1251fdfe38.
Nicholas Clark [Sat, 7 May 2011 18:59:24 +0000 (20:59 +0200)]
The test isn't testing as much as intended without it.
t/basic.t
patch
|
blob
|
blame
|
history
diff --git
a/t/basic.t
b/t/basic.t
index
e39799a
..
4166e2d
100644
(file)
--- a/
t/basic.t
+++ b/
t/basic.t
@@
-85,6
+85,7
@@
cmp_ok (total_size(\&LARGE), '>', 8192,
my $a = [];
my $b = \$a;
# making a weakref upgrades the target to PVMG and adds magic
+ weaken $b;
is(total_size($a), total_size([]),
'Any intial reference is dereferenced and discarded');
}