summaryrefslogtreecommitdiff
path: root/test/asset/list/concat.et
blob: 613df57f1959c36bb47e628553146b6e0dc43226 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
test Test:
    let list1 = [ 1 ]
    let list2 = [ 2, 3 ]
    let empty = [  ]

    node n

    let c1 = concat [[ 1 ]]
    for i in c1:
        shell on n:
            echo "c1 $i"
    local:
        shell on n:
            echo "c1-end"

    let c2 = concat [[ 1 ], [], empty]
    for i in c2:
        shell on n:
            echo "c2 $i"
    local:
        shell on n:
            echo "c2-end"

    let c3 = concat [ list1, list2, [ 6, 5 ], list2 ]
    for i in c3:
        shell on n:
            echo "c3 $i"
    local:
        shell on n:
            echo "c3-end"