Skip to content

Commit

Permalink
Test … op does not prematurely cause consumtion of Seqs
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Apr 18, 2018
1 parent 9a6b6b6 commit 9b51e66
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion S03-sequence/misc.t
@@ -1,6 +1,6 @@
use v6;
use Test;
plan 30;
plan 31;

is ("fom" ... /foo/), "fom fon foo", "can use regex for endpoint without it being confused for closure";

Expand Down Expand Up @@ -127,4 +127,7 @@ is (1, { $^n*2 + 1 } ... 31, *+5 ... { $^n**2 > 2000 }, 'a', *~'z' ... { $_.char
is identity-matrix(5).perl, [[1,0,0,0,0], [0,1,0,0,0], [0,0,1,0,0], [0,0,0,1,0], [0,0,0,0,1]].perl, "code endpoint protects item";
}

is-deeply (<a b c>, *.reverse ... *)[5], <c b a>.Seq,
'… op does not prematurely cause consumtion of Seqs';

# vim: ft=perl6

0 comments on commit 9b51e66

Please sign in to comment.