-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathparam-listlist.json
36 lines (36 loc) · 1022 Bytes
/
param-listlist.json
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
[
{
"name": "parameterised inner list",
"raw": ["(abc_123);a=1;b=2, cdef_456"],
"header_type": "list",
"expected": [
[
[[{"__type": "token", "value": "abc_123"}, []]],
[["a", 1], ["b", 2]]
],
[{"__type": "token", "value": "cdef_456"}, []]
]
},
{
"name": "parameterised inner list item",
"raw": ["(abc_123;a=1;b=2;cdef_456)"],
"header_type": "list",
"expected": [
[
[[{"__type": "token", "value": "abc_123"}, [["a", 1], ["b", 2], ["cdef_456", true]]]],
[]
]
]
},
{
"name": "parameterised inner list with parameterised item",
"raw": ["(abc_123;a=1;b=2);cdef_456"],
"header_type": "list",
"expected": [
[
[[{"__type": "token", "value": "abc_123"}, [["a", 1], ["b", 2]]]],
[["cdef_456", true]]
]
]
}
]