Skip to content

Commit

Permalink
Test cloned Baggies have defined WHICH
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Dec 12, 2016
1 parent b482c7c commit ebfab26
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion S02-types/WHICH.t
Expand Up @@ -413,7 +413,7 @@ my @moar = <
X::Proc::Async::TapBeforeSpawn
>;

plan 5 + 4 * ( @normal + @exception + @concurrent + @moar );
plan 6 + 4 * ( @normal + @exception + @concurrent + @moar );

my %seen-which;

Expand Down Expand Up @@ -462,3 +462,6 @@ subtest 'ObjAt.perl gives distinct results for different objects' => {
plan +@obj;
is .WHICH.perl, qq|ObjAt.new("{.WHICH}")|, "object: {.perl}" for @obj;
}

# RT #130271
ok Bag.new.clone.WHICH.defined, 'cloned Bag does not lose WHICH';

0 comments on commit ebfab26

Please sign in to comment.