Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add some tests for argumentless [min] and [max].
  • Loading branch information
pmichaud committed Jun 25, 2012
1 parent f18a918 commit 4ec2969
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions S03-metaops/reduce.t
Expand Up @@ -218,6 +218,12 @@ is( ([\*] 1..*).[^10].join(', '), '1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3
is( ([\R~] 'a'..*).[^8].join(', '), 'a, ba, cba, dcba, edcba, fedcba, gfedcba, hgfedcba',
'triangle reduce is lazy');

is( ([max]()), -Inf, '[max]() returns -Inf');
is( ([min]()), Inf, '[min]() returns -Inf');

is( ([max] Any, Any, 2), 2, '[max] Any, Any, 2 returns 2');
is( ([min] Any, Any, 2), 2, '[min] Any, Any, 2 returns 2');

# RT #65164 implement [^^]
#?niecza skip '^^'
#?rakudo skip '[^^]'
Expand Down

0 comments on commit 4ec2969

Please sign in to comment.