Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Clone tests should be marked as todo for the time being
  • Loading branch information
lizmat committed Jun 23, 2013
1 parent ef1b165 commit 894a692
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions S12-attributes/clone.t
Expand Up @@ -73,6 +73,7 @@ is($val2, 42, '... cloned object has proper attr value');
}
my $a1 = ArrTest.new(:array<a b>);
my $a2 = $a1.clone(:array<c d>);
#?rakudo todo "clone currently messes up original"
is_deeply $a1.array, ['a', 'b'], 'original object has its original array';
is_deeply $a2.array, ['c', 'd'], 'cloned object has the newly-provided array';

Expand All @@ -82,6 +83,7 @@ is($val2, 42, '... cloned object has proper attr value');
}
my $b1 = HshTest.new(hash=>{'a' => 'b'});
my $b2 = $b1.clone(hash=>{'c' => 'd'});
#?rakudo todo "clone currently messes up original"
is_deeply $b1.hash, {'a' => 'b'}, 'original object has its original hash';
is_deeply $b2.hash, {'c' => 'd'}, 'cloned object has the newly-provided hash';
}
Expand Down

0 comments on commit 894a692

Please sign in to comment.