Skip to content

Commit

Permalink
tests for RT #76238, Bool.pick (and SomeEnum.pick)
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Jan 9, 2011
1 parent 0127f17 commit d5e42b6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion S32-list/pick.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 26;
plan 28;

=begin description
Expand Down Expand Up @@ -82,4 +82,12 @@ is (<a b c d>.pick(*).sort).Str, 'a b c d', 'pick(*) returns all the items in th
dies_ok({ [1,2,3].pick(4, :replace) }, 'error on deprecated :replace');
}

# enums + pick
{
is Bool.pick(*).elems, 2, 'Bool.pick works';

enum A <b c d>;
is A.pick(*).elems, 3, 'RandomEnum.pick works';
}

# vim: ft=perl6

0 comments on commit d5e42b6

Please sign in to comment.