Permalink
Browse files

I correctly 'deference' my capture types however I'm still not clonin…

…g them correctly.
  • Loading branch information...
1 parent cee3d9a commit aa5a6884b32184f8922d82bd3a97b60aa880dbb3 @Takadonet committed Dec 21, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 t/13_Tree_Simple_clone_test.t
View
4 t/13_Tree_Simple_clone_test.t
@@ -62,7 +62,7 @@ ok($tree.getChild(1).getNodeValue().WHAT ~~ Capture, '... these should be scalar
isnt($clone.getChild(1).getNodeValue().WHERE, $tree.getChild(1).getNodeValue().WHERE,
'... these should be different scalar refs');
#with the same value
-is($clone.getChild(1).getNodeValue(), $tree.getChild(1).getNodeValue(),
+is($clone.getChild(1).getNodeValue().[0], $tree.getChild(1).getNodeValue().[0],
'... these should be the same value');
# they should both be array refs
@@ -130,7 +130,7 @@ is($tree.getChild(8).getNodeValue().WHAT, Capture, '... these should be refs of
isnt($clone.getChild(8).getNodeValue().WHERE, $tree.getChild(8).getNodeValue().WHERE,
'... these should be different scalar refs');
# with the same ref value
-is($($($clone.getChild(8).getNodeValue())), $($($tree.getChild(8).getNodeValue())),
+is($clone.getChild(8).getNodeValue().[0].[0], $tree.getChild(8).getNodeValue().[0].[0],
'... these should be the same value');
# test cloneShallow

0 comments on commit aa5a688

Please sign in to comment.