Skip to content

Commit

Permalink
.hyper preserves order
Browse files Browse the repository at this point in the history
The test can be simplified, but currently .hyper returns an empty list
on some runs, which would cause the test to fail. The order *is* preserved,
when we do get something, however.

RT#127099
  • Loading branch information
zoffixznet committed Sep 10, 2016
1 parent 02d6988 commit c14b344
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion S07-hyperrace/hyper.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 12;
plan 13;

{
my @result = <a b c d e f g>.hyper.map({ $_.uc });
Expand Down Expand Up @@ -99,3 +99,9 @@ plan 12;
}
}
}

# RT #127099
{
my @res = ^1000 .hyper.map: *+0;
is-deeply @res, [@res.sort], '.hyper preserves order';
}

0 comments on commit c14b344

Please sign in to comment.