Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make a failing test non-lethal on JVM, then fudge it.
  • Loading branch information
skids committed Jul 24, 2015
1 parent 8df768a commit f5665a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion S32-list/pick.t
Expand Up @@ -146,7 +146,8 @@ is (<a b c d>.pick(*).sort).Str, 'a b c d', 'pick(*) returns all the items in th

{
my %seen;
%seen{$_} = 1 for (1 .. (10**1000) ).pick(50);
try { %seen{$_} = 1 for (1 .. (10**1000) ).pick(50); }
#?rakudo.jvm todo '"Cannot .pick from an infinite list" (but not from CLI)'
is %seen.keys.elems, 50, 'Range.pick produces uniq elems in huge range';
ok (so 1 <= all(%seen.keys) <= 10**1000), '... and all the elements are in range';
}
Expand Down

0 comments on commit f5665a1

Please sign in to comment.