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
|
[Valid]
Input =
Expected =
Input = K=V
Expected = K|V
Input = K=V,K2=C\,omma
Expected = K|V|K2|C,omma
Input = K=V,K2=C\,omma,Eq=1\=1\,orsoihear
Expected = K|V|K2|C,omma|Eq|1=1,orsoihear
Input = Key=Escape\\fromNewYork
Expected = Key|Escape\fromNewYork
Input = Key=,Empty=SoVery
Expected = Key||Empty|SoVery
Input = TheKey\==Equals,Normal=OK
Expected = TheKey=|Equals|Normal|OK
[Invalid]
Input = K=V,K2=V,K=V2
Expected = Bad KV spec duplicated key
Input = K=V,K2=V,K2=V2,K=V2
Expected = Bad KV spec duplicated key
Input = K=V,,K2=V
Expected = Bad KV spec empty key
Input = K==V,K2=V
Expected = Bad KV spec unexpected equals sign
Input = K=V,K2==V
Expected = Bad KV spec unexpected equals sign
Input = K=V,K2=V,
Expected = Bad KV spec
Input = K=V,K2=V,Wut
Expected = Bad KV spec incomplete string
Input = =V,K2=V
Expected = Bad KV spec empty key
Input = V
Expected = Bad KV spec incomplete string
|