forked from httpwg/structured-field-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtoken.json
38 lines (38 loc) · 1.05 KB
/
token.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
[
{
"name": "basic token - item",
"raw": ["a_b-c.d3:f%00/*"],
"header_type": "item",
"expected": [{"__type": "token", "value": "a_b-c.d3:f%00/*"}, {}]
},
{
"name": "token with capitals - item",
"raw": ["fooBar"],
"header_type": "item",
"expected": [{"__type": "token", "value": "fooBar"}, {}]
},
{
"name": "token starting with capitals - item",
"raw": ["FooBar"],
"header_type": "item",
"expected": [{"__type": "token", "value": "FooBar"}, {}]
},
{
"name": "basic token - list",
"raw": ["a_b-c3/*"],
"header_type": "list",
"expected": [[{"__type": "token", "value": "a_b-c3/*"}, {}]]
},
{
"name": "token with capitals - list",
"raw": ["fooBar"],
"header_type": "list",
"expected": [[{"__type": "token", "value": "fooBar"}, {}]]
},
{
"name": "token starting with capitals - list",
"raw": ["FooBar"],
"header_type": "list",
"expected": [[{"__type": "token", "value": "FooBar"}, {}]]
}
]