Re-instate initial dereference in total_size()
[p5sagit/Devel-Size.git] / t / basic.t
index 55e5278..b5b0838 100644 (file)
--- a/t/basic.t
+++ b/t/basic.t
@@ -96,7 +96,7 @@ cmp_ok (total_size(\&LARGE), '>', 8192,
 {
     my $a = [];
     my $b = \$a;
-    weaken $b;
-    cmp_ok(total_size($a), '>', total_size([]),
-          'making a weakref upgrades the target to PVMG and adds magic');
+    # making a weakref upgrades the target to PVMG and adds magic
+    is(total_size($a), total_size([]),
+       'Any intial reference is dereferenced and discarded');
 }