-
Notifications
You must be signed in to change notification settings - Fork 21
/
list.json
74 lines (74 loc) · 1.71 KB
/
list.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
65
66
67
68
69
70
71
72
73
74
[
{
"name": "basic list",
"raw": ["1, 42"],
"header_type": "list",
"expected": [[1, []], [42, []]]
},
{
"name": "empty list",
"raw": [""],
"header_type": "list",
"expected": [],
"canonical": []
},
{
"name": "leading SP list",
"raw": [" 42, 43"],
"canonical": ["42, 43"],
"header_type": "list",
"expected": [[42, []], [43, []]]
},
{
"name": "single item list",
"raw": ["42"],
"header_type": "list",
"expected": [[42, []]]
},
{
"name": "no whitespace list",
"raw": ["1,42"],
"header_type": "list",
"expected": [[1, []], [42, []]],
"canonical": ["1, 42"]
},
{
"name": "extra whitespace list",
"raw": ["1 , 42"],
"header_type": "list",
"expected": [[1, []], [42, []]],
"canonical": ["1, 42"]
},
{
"name": "tab separated list",
"raw": ["1\t,\t42"],
"header_type": "list",
"expected": [[1, []], [42, []]],
"canonical": ["1, 42"]
},
{
"name": "two line list",
"raw": ["1", "42"],
"header_type": "list",
"expected": [[1, []], [42, []]],
"canonical": ["1, 42"]
},
{
"name": "trailing comma list",
"raw": ["1, 42,"],
"header_type": "list",
"must_fail": true
},
{
"name": "empty item list",
"raw": ["1,,42"],
"header_type": "list",
"must_fail": true
},
{
"name": "empty item list (multiple field lines)",
"raw": ["1","","42"],
"header_type": "list",
"must_fail": true
}
]