-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathexample.json
More file actions
65 lines (65 loc) · 1.16 KB
/
example.json
File metadata and controls
65 lines (65 loc) · 1.16 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
"steps": [
{
"payload": "{{ main }}"
},
{
"assert": "{{ payload > 1 }}",
"then": [
{
"payload": "{{ payload + 1 }}"
},
{
"assert": "{{ payload == 3 }}",
"then": {
"steps": [
{
"payload": "{{ payload + 1 }}"
}
]
},
"else": {
"assert": "{{ payload == 6 }}",
"then": [
{
"log.info": "{{ `Finished with payload 6` }}"
},
{
"return": 100
}
]
}
}
]
},
{
"id": "final_step",
"payload": "{{ payload ?? main + 10 }}"
},
{
"log.info": "{{ `Final payload is ${payload}` }}"
}
],
"tests": [
{
"describe": "Complex 1",
"main": 1,
"assert_eq": 11
},
{
"describe": "Complex 2",
"main": 2,
"assert_eq": 14
},
{
"describe": "Complex 3",
"main": 4,
"assert_eq": 15
},
{
"describe": "Complex 4",
"main": 5,
"assert_eq": 100
}
]
}