Browse files

Add permute(1..100) test for masak.

  • Loading branch information...
1 parent 8bb305c commit d824f465a7eb04367e4669ca5895a0560b81c82e @colomon committed Mar 16, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 t/02-permute.t
View
5 t/02-permute.t
@@ -9,4 +9,9 @@ plan *;
is @a.elems, 6, "(1, 2, 3) has 6 permutations";
}
+{
+ my @a := permute(1..100);
+ is @a[0].elems, 100, "permute(1..100) is lazy, and the first thing it returns is 100 elements long";
+}
+
done;

0 comments on commit d824f46

Please sign in to comment.