Skip to content

Commit

Permalink
add test for adverbial block form of min (RT #53804)
Browse files Browse the repository at this point in the history
  • Loading branch information
diakopter committed May 30, 2012
1 parent 7a70097 commit ed219b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion S32-list/minmax.t
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 58;
plan 59;

# L<S32::Containers/List/=item min>
# L<S32::Containers/List/=item max>
Expand All @@ -23,6 +23,9 @@ is min(@array), -9, 'min(list)';
is (@array.min: { $^a <=> $^b }), -9,
"method form of min with identity comparison block works";

is (@array.min:{ $^a <=> $^b }), -9,
"adverbial block form of min with identity comparison block works (RT #53804)";

is min(:by({ $^a <=> $^b }), @array), -9,
"subroutine form of min with identity comparison block works";

Expand Down

0 comments on commit ed219b0

Please sign in to comment.