######## test-repeater.az ########
==== Test of repeater ====
a=1, b=2, c=[3, 4, 5, 6]
a=11, b=12, c=[13, 14, 15, 16]
a=21, b=22, c=[23, 24, 25, 26]
expected error occurs
for ([x, y] in [[1, 3], [5, 7], [9, 11], [13, 15]]):list { format("%d-%d", x, y) }.join(" ") .. 1-3 5-7 9-11 13-15
cross ([x, y] in [[1, 3], [5, 7], [9, 11], [13, 15]]):list { format("%d-%d", x, y) }.join(" ") .. 1-3 5-7 9-11 13-15
cross (x in ["alpha", "beta", "gamm"], y in 0 .. 2):list {|n, i, j| if (y != j) { printf("test failed\n"), sys.exit(1) }, format("%d:%d-%s:%d", i, j, x, y) } .. ["0:0-alpha:0", "0:1-alpha:1", "0:2-alpha:2", "1:0-beta:0", "1:1-beta:1", "1:2-beta:2", "2:0-gamm:0", "2:1-gamm:1", "2:2-gamm:2"]
cross (x in ["alpha", "beta", "gamm"], y in 0 .. 2, z in 0 .. 2):list {|n, i, j, k| if (y != j || z != k) { printf("test failed\n"), sys.exit(1) }, format("%d:%d:%d-%s:%d:%d", i, j, k, x, y, z) } .. ["0:0:0-alpha:0:0", "0:0:1-alpha:0:1", "0:0:2-alpha:0:2", "0:1:0-alpha:1:0", "0:1:1-alpha:1:1", "0:1:2-alpha:1:2", "0:2:0-alpha:2:0", "0:2:1-alpha:2:1", "0:2:2-alpha:2:2", "1:0:0-beta:0:0", "1:0:1-beta:0:1", "1:0:2-beta:0:2", "1:1:0-beta:1:0", "1:1:1-beta:1:1", "1:1:2-beta:1:2", "1:2:0-beta:2:0", "1:2:1-beta:2:1", "1:2:2-beta:2:2", "2:0:0-gamm:0:0", "2:0:1-gamm:0:1", "2:0:2-gamm:0:2", "2:1:0-gamm:1:0", "2:1:1-gamm:1:1", "2:1:2-gamm:1:2", "2:2:0-gamm:2:0", "2:2:1-gamm:2:1", "2:2:2-gamm:2:2"]
cross (x in ["alpha", "beta", "gamm"], y in 0 .. 2, z in 0 .. 2, w in 0 .. 1):list {|n, i, j, k, l| if (y != j || z != k || w != l) { printf("test failed\n"), sys.exit(1) }, format("%d:%d:%d:%d-%s:%d:%d:%d", i, j, k, l, x, y, z, w) } .. ["0:0:0:0-alpha:0:0:0", "0:0:0:1-alpha:0:0:1", "0:0:1:0-alpha:0:1:0", "0:0:1:1-alpha:0:1:1", "0:0:2:0-alpha:0:2:0", "0:0:2:1-alpha:0:2:1", "0:1:0:0-alpha:1:0:0", "0:1:0:1-alpha:1:0:1", "0:1:1:0-alpha:1:1:0", "0:1:1:1-alpha:1:1:1", "0:1:2:0-alpha:1:2:0", "0:1:2:1-alpha:1:2:1", "0:2:0:0-alpha:2:0:0", "0:2:0:1-alpha:2:0:1", "0:2:1:0-alpha:2:1:0", "0:2:1:1-alpha:2:1:1", "0:2:2:0-alpha:2:2:0", "0:2:2:1-alpha:2:2:1", "1:0:0:0-beta:0:0:0", "1:0:0:1-beta:0:0:1", "1:0:1:0-beta:0:1:0", "1:0:1:1-beta:0:1:1", "1:0:2:0-beta:0:2:0", "1:0:2:1-beta:0:2:1", "1:1:0:0-beta:1:0:0", "1:1:0:1-beta:1:0:1", "1:1:1:0-beta:1:1:0", "1:1:1:1-beta:1:1:1", "1:1:2:0-beta:1:2:0", "1:1:2:1-beta:1:2:1", "1:2:0:0-beta:2:0:0", "1:2:0:1-beta:2:0:1", "1:2:1:0-beta:2:1:0", "1:2:1:1-beta:2:1:1", "1:2:2:0-beta:2:2:0", "1:2:2:1-beta:2:2:1", "2:0:0:0-gamm:0:0:0", "2:0:0:1-gamm:0:0:1", "2:0:1:0-gamm:0:1:0", "2:0:1:1-gamm:0:1:1", "2:0:2:0-gamm:0:2:0", "2:0:2:1-gamm:0:2:1", "2:1:0:0-gamm:1:0:0", "2:1:0:1-gamm:1:0:1", "2:1:1:0-gamm:1:1:0", "2:1:1:1-gamm:1:1:1", "2:1:2:0-gamm:1:2:0", "2:1:2:1-gamm:1:2:1", "2:2:0:0-gamm:2:0:0", "2:2:0:1-gamm:2:0:1", "2:2:1:0-gamm:2:1:0", "2:2:1:1-gamm:2:1:1", "2:2:2:0-gamm:2:2:0", "2:2:2:1-gamm:2:2:1"]
t = [0, 5, 2, 1, 5, 9, 9, 9, 9, 9, 1, nil, 9, 9, 9, 1, 4, 7, 8, 2, 1, 0, nil, 1, 9, 6, 7, 8, 9, 5]
list:  [0, 5, 2, 1, 5, 9, 9, 9, 9, 9, 1, nil, 9, 9, 9, 1, 4, 7, 8, 2, 1, 0, nil, 1, 9, 6, 7, 8, 9, 5]
xlist: [0, 5, 2, 1, 5, 9, 9, 9, 9, 9, 1, 9, 9, 9, 1, 4, 7, 8, 2, 1, 0, 1, 9, 6, 7, 8, 9, 5]
set:   [0, 5, 2, 1, 9, nil, 4, 7, 8, 6]
xset:  [0, 5, 2, 1, 9, 4, 7, 8, 6]
2
4
6
0 is less than 3
1 is less than 3
2 is less than 3
3 is less than 6
4 is less than 6
5 is less than 6
6 is greater than 5
7 is greater than 5
8 is greater than 5
9 is greater than 5
10 is greater than 5
entry-1 30
entry-2 23
entry-3 29
entry-4 34
entry-1 30
entry-2 23
entry-3 29
entry-4 34
hello
hello
hello
hello
hello
["hello", "hello", "hello", "hello"]
["hello 0", "#", "hello 2", "#", "hello 4", "#", "hello 6", "#", "hello 8", "#"]
  0  3  5  8  9
[1, nil, nil, 4, nil, nil, nil, nil, 9, 10]
["#", "#", "#", 4, "#", "#", "#", 8, 9, "#"]
  1  3  5  7  9
[1, 2, nil, 4, 5, nil, 7, 8, nil, 10]
[1, 2, "#", 4, 5, "#", 7, 8, "#", 10]
f(2) .. nil
f(3) .. here
g(2) .. nil
g(3) .. here
h(2) .. nil
x is less than three.
x is greater than or equal to three.
return test in a nested loop
[0,0,0,1], [0,0,0,3], [0,0,0,-1], [0,0,0,2], [0,0,0,3], [0,0,0,4]
[0,0,1,1], [0,0,1,3], [0,0,1,-1], [0,0,1,2], [0,0,1,3], [0,0,1,4]
[0,0,2,1], [0,0,2,3], [0,0,2,-1], [0,0,2,2], [0,0,2,3], [0,0,2,4]
[0,0,3,1], [0,0,3,3], [0,0,3,-1], [0,0,3,2], [0,0,3,3], [0,0,3,4]
[0,0,4,1], [0,0,4,3], [0,0,4,-1], [0,0,4,2], [0,0,4,3], [0,0,4,4]
[0,1,0,1], [0,1,0,3], [0,1,0,-1], [0,1,0,2], [0,1,0,3], [0,1,0,4]
[0,1,1,1], [0,1,1,3], [0,1,1,-1], [0,1,1,2], [0,1,1,3], [0,1,1,4]
[0,1,2,1], [0,1,2,3], [0,1,2,-1], [0,1,2,2], [0,1,2,3], [0,1,2,4]
[0,1,3,1], [0,1,3,3], [0,1,3,-1], [0,1,3,2], [0,1,3,3], [0,1,3,4]
[0,1,4,1], [0,1,4,3], [0,1,4,-1], [0,1,4,2], [0,1,4,3], [0,1,4,4]
[0,2,0,1], [0,2,0,3], [0,2,0,-1], [0,2,0,2], [0,2,0,3], [0,2,0,4]
[0,2,1,1], [0,2,1,3], [0,2,1,-1], [0,2,1,2], [0,2,1,3], [0,2,1,4]
[0,2,2,1], [0,2,2,3], [0,2,2,-1], [0,2,2,2], [0,2,2,3], [0,2,2,4]
[0,2,3,1], [0,2,3,3], [0,2,3,-1], [0,2,3,2], [0,2,3,3], [0,2,3,4]
[0,2,4,1], [0,2,4,3], [0,2,4,-1], [0,2,4,2], [0,2,4,3], [0,2,4,4]
[0,3,0,1], [0,3,0,3], [0,3,0,-1], [0,3,0,2], [0,3,0,3], [0,3,0,4]
[0,3,1,1], [0,3,1,3], [0,3,1,-1], [0,3,1,2], [0,3,1,3], [0,3,1,4]
[0,3,2,1], [0,3,2,3], [0,3,2,-1], [0,3,2,2], [0,3,2,3], [0,3,2,4]
[0,3,3,1], [0,3,3,3], [0,3,3,-1], [0,3,3,2], [0,3,3,3], [0,3,3,4]
[0,3,4,1], [0,3,4,3], [0,3,4,-1], [0,3,4,2], [0,3,4,3], [0,3,4,4]
[0,4,0,1], [0,4,0,3], [0,4,0,-1], [0,4,0,2], [0,4,0,3], [0,4,0,4]
[0,4,1,1], [0,4,1,3], [0,4,1,-1], [0,4,1,2], [0,4,1,3], [0,4,1,4]
[0,4,2,1], [0,4,2,3], [0,4,2,-1], [0,4,2,2], [0,4,2,3], [0,4,2,4]
[0,4,3,1], [0,4,3,3], [0,4,3,-1], [0,4,3,2], [0,4,3,3], [0,4,3,4]
[0,4,4,1], [0,4,4,3], [0,4,4,-1], [0,4,4,2], [0,4,4,3], [0,4,4,4]
[1,0,0,1], [1,0,0,3], [1,0,0,-1], [1,0,0,2], [1,0,0,3], [1,0,0,4]
[1,0,1,1], [1,0,1,3], [1,0,1,-1], [1,0,1,2], [1,0,1,3], [1,0,1,4]
[1,0,2,1], [1,0,2,3], [1,0,2,-1], [1,0,2,2], [1,0,2,3], [1,0,2,4]
[1,0,3,1], [1,0,3,3], [1,0,3,-1], [1,0,3,2], [1,0,3,3], [1,0,3,4]
[1,0,4,1], [1,0,4,3], [1,0,4,-1], [1,0,4,2], [1,0,4,3], [1,0,4,4]
[1,1,0,1], [1,1,0,3], [1,1,0,-1], [1,1,0,2], [1,1,0,3], [1,1,0,4]
[1,1,1,1], [1,1,1,3], [1,1,1,-1], [1,1,1,2], [1,1,1,3], [1,1,1,4]
[1,1,2,1], [1,1,2,3], [1,1,2,-1], [1,1,2,2], [1,1,2,3], [1,1,2,4]
[1,1,3,1], [1,1,3,3], [1,1,3,-1], [1,1,3,2], [1,1,3,3], [1,1,3,4]
[1,1,4,1], [1,1,4,3], [1,1,4,-1], [1,1,4,2], [1,1,4,3], [1,1,4,4]
[1,2,0,1], [1,2,0,3], [1,2,0,-1], [1,2,0,2], [1,2,0,3], [1,2,0,4]
[1,2,1,1], [1,2,1,3], [1,2,1,-1], [1,2,1,2], [1,2,1,3], [1,2,1,4]
[1,2,2,1], [1,2,2,3], [1,2,2,-1]
 hello hello hello hello hello hello hello hello hello hello
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
[14, 11, 4, 11, 14, 6, 4, 10, 11, 1, 10, 4, 12, 15, 9, 2, 17, 16, 3, 6]
 1 4 9 16 25 36 49 64 81
 1 2 3 4 5 6 7 8 9
 2 4 6 8 10 12 14 16 18
 3 6 9 12 15 18 21 24 27
 4 8 12 16 20 24 28 32 36
 5 10 15 20 25 30 35 40 45
 6 12 18 24 30 36 42 48 54
 7 14 21 28 35 42 49 56 63
 8 16 24 32 40 48 56 64 72
 9 18 27 36 45 54 63 72 81
 1 2 3 4 5 6 7 8 9 2 4 6 8 10 12 14 16 18 3 6 9 12 15 18 21 24 27 4 8 12 16 20 24 28 32 36 5 10 15 20 25 30 35 40 45 6 12 18 24 30 36 42 48 54 7 14 21 28 35 42 49 56 63 8 16 24 32 40 48 56 64 72 9 18 27 36 45 54 63 72 81
--
[8, 8, 4, 2, 3, 3, 6, 9, 9, 7]
it's successful if you see an error below ;-)
expected error happens
