Skip to content

Commit

Permalink
I correctly 'deference' my capture types however I'm still not clonin…
Browse files Browse the repository at this point in the history
…g them correctly.
  • Loading branch information
Takadonet committed Dec 21, 2010
1 parent cee3d9a commit aa5a688
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/13_Tree_Simple_clone_test.t
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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, isnt($clone.getChild(1).getNodeValue().WHERE, $tree.getChild(1).getNodeValue().WHERE,
'... these should be different scalar refs'); '... these should be different scalar refs');
#with the same value #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'); '... these should be the same value');


# they should both be array refs # they should both be array refs
Expand Down Expand Up @@ -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, isnt($clone.getChild(8).getNodeValue().WHERE, $tree.getChild(8).getNodeValue().WHERE,
'... these should be different scalar refs'); '... these should be different scalar refs');
# with the same ref value # 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'); '... these should be the same value');


# test cloneShallow # test cloneShallow
Expand Down

0 comments on commit aa5a688

Please sign in to comment.