Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a test for type object clone not crashing.
  • Loading branch information
jnthn committed Oct 2, 2014
1 parent c9f80da commit 54b2715
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion S12-attributes/clone.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 34;
plan 35;

# L<S12/Cloning/You can clone an object, changing some of the attributes:>
class Foo {
Expand Down Expand Up @@ -138,4 +138,6 @@ is($val2, 42, '... cloned object has proper attr value');
is_deeply $cont.obj.arr, ['j', 'k', 'l'], 'original object has new value';
}

lives_ok { Int.clone }, 'cloning a type object does not explode';

# vim: ft=perl6

0 comments on commit 54b2715

Please sign in to comment.