Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add some tests for argumentless [min] and [max].

  • Loading branch information...
commit 4ec2969e814bfb5650075f66ee1288fa02ef94a8 1 parent f18a918
@pmichaud pmichaud authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 S03-metaops/reduce.t
View
6 S03-metaops/reduce.t
@@ -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 '[^^]'
Please sign in to comment.
Something went wrong with that request. Please try again.