-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathlistlist.json
64 lines (64 loc) · 1.66 KB
/
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
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
[
{
"name": "basic list of lists",
"raw": ["(1 2), (42 43)"],
"header_type": "list",
"expected": [[[[1, []], [2, []]], []], [[[42, []], [43, []]], []]]
},
{
"name": "single item list of lists",
"raw": ["(42)"],
"header_type": "list",
"expected": [[[[42, []]], []]]
},
{
"name": "empty item list of lists",
"raw": ["()"],
"header_type": "list",
"expected": [[[], []]]
},
{
"name": "empty middle item list of lists",
"raw": ["(1),(),(42)"],
"header_type": "list",
"expected": [[[[1, []]], []], [[], []], [[[42, []]], []]],
"canonical": ["(1), (), (42)"]
},
{
"name": "extra whitespace list of lists",
"raw": ["( 1 42 )"],
"header_type": "list",
"expected": [[[[1, []], [42, []]], []]],
"canonical": ["(1 42)"]
},
{
"name": "wrong whitespace list of lists",
"raw": ["(1\t 42)"],
"header_type": "list",
"must_fail": true
},
{
"name": "no trailing parenthesis list of lists",
"raw": ["(1 42"],
"header_type": "list",
"must_fail": true
},
{
"name": "no trailing parenthesis middle list of lists",
"raw": ["(1 2, (42 43)"],
"header_type": "list",
"must_fail": true
},
{
"name": "no spaces in inner-list",
"raw": ["(abc\"def\"?0123*dXZ3*xyz)"],
"header_type": "list",
"must_fail": true
},
{
"name": "no closing parenthesis",
"raw": ["("],
"header_type": "list",
"must_fail": true
}
]