@@ -36,6 +36,7 @@ plan 34;
36
36
# character sequence
37
37
38
38
is (' a' ... ' g' ). join (' , ' ), ' a, b, c, d, e, f, g' , ' finite sequence started with one letter' ;
39
+ # ?rakudo skip 'nom regression'
39
40
is (' a' ... * ). [^ 7 ]. join (' , ' ), ' a, b, c, d, e, f, g' , ' sequence started with one letter' ;
40
41
is (' a' , ' b' ... * ). [^ 10 ]. join (' , ' ), ' a, b, c, d, e, f, g, h, i, j' , ' sequence started with two different letters' ;
41
42
is (<a b c > ... * ). [^ 10 ]. join (' , ' ), " a, b, c, d, e, f, g, h, i, j" , " character sequence started from array" ;
@@ -44,7 +45,9 @@ is (<z y> ... 'a').[^10].join(', '), 'z, y, x, w, v, u, t, s, r, q', 'descending
44
45
is (<z y m > ... ' a' ). [^ 10 ]. join (' , ' ), ' z, y, m, l, k, j, i, h, g, f' , ' descending sequence started with three different letters' ;
45
46
is (<a b >, { . succ } ... * ). [^ 7 ]. join (' , ' ), ' a, b, c, d, e, f, g' , ' characters xand arity-1' ;
46
47
is (' x' ... ' z' ). join (' , ' ), ' x, y, z' , " sequence ending with 'z' don't cross to two-letter strings" ;
48
+ # ?rakudo skip 'hangs'
47
49
is (' A' ... ' z' ). elems , ' z' . ord - ' A' . ord + 1 , " sequence from 'A' to 'z' is finite and of correct length" ;
50
+ # ?rakudo skip 'hangs'
48
51
is (' α' ... ' ω' ). elems , ' ω' . ord - ' α' . ord + 1 , " sequence from 'α' to 'ω' is finite and of correct length" ;
49
52
# ?rakudo 2 skip 'Unicode stuff'
50
53
is (' ☀' ... ' ☕' ). join (' ' ), ' ☀☁☂☃☄★☆☇☈☉☊☋☌☍☎☏☐☑☒☓☔☕' , " sequence from '☀' to '☕'" ;
@@ -54,6 +57,7 @@ is ('☀' ...^ '☕').join(''), '☀☁☂☃☄★☆☇☈☉☊☋☌☍☎
54
57
# the tricky termination test
55
58
56
59
ok (' A' ... ' ZZ' ). munch(1000 ). elems < 1000 , " 'A' ... 'ZZ' does not go on forever" ;
60
+ # ?rakudo 2 skip 'Decrement out of range'
57
61
ok (' ZZ' ... ' A' ). munch(1000 ). elems < 1000 , " 'ZZ' ... 'A' does not go on forever" ;
58
62
ok (' Z' ... ' AA' ). munch(1000 ). elems < 1000 , " 'Z' ... 'AA' does not go on forever" ;
59
63
is (' A' ... ^ ' ZZ' )[* - 1 ], ' ZY' , " 'A' ...^ 'ZZ' omits last element" ;
0 commit comments