@@ -38,29 +38,29 @@ var parseExtensionTests = []struct {
38
38
value string
39
39
extensions []map [string ]string
40
40
}{
41
- {`foo` , []map [string ]string {map [ string ] string {"" : "foo" }}},
41
+ {`foo` , []map [string ]string {{"" : "foo" }}},
42
42
{`foo, bar; baz=2` , []map [string ]string {
43
- map [ string ] string {"" : "foo" },
44
- map [ string ] string {"" : "bar" , "baz" : "2" }}},
43
+ {"" : "foo" },
44
+ {"" : "bar" , "baz" : "2" }}},
45
45
{`foo; bar="b,a;z"` , []map [string ]string {
46
- map [ string ] string {"" : "foo" , "bar" : "b,a;z" }}},
46
+ {"" : "foo" , "bar" : "b,a;z" }}},
47
47
{`foo , bar; baz = 2` , []map [string ]string {
48
- map [ string ] string {"" : "foo" },
49
- map [ string ] string {"" : "bar" , "baz" : "2" }}},
48
+ {"" : "foo" },
49
+ {"" : "bar" , "baz" : "2" }}},
50
50
{`foo, bar; baz=2 junk` , []map [string ]string {
51
- map [ string ] string {"" : "foo" }}},
51
+ {"" : "foo" }}},
52
52
{`foo junk, bar; baz=2 junk` , nil },
53
53
{`mux; max-channels=4; flow-control, deflate-stream` , []map [string ]string {
54
- map [ string ] string {"" : "mux" , "max-channels" : "4" , "flow-control" : "" },
55
- map [ string ] string {"" : "deflate-stream" }}},
54
+ {"" : "mux" , "max-channels" : "4" , "flow-control" : "" },
55
+ {"" : "deflate-stream" }}},
56
56
{`permessage-foo; x="10"` , []map [string ]string {
57
- map [ string ] string {"" : "permessage-foo" , "x" : "10" }}},
57
+ {"" : "permessage-foo" , "x" : "10" }}},
58
58
{`permessage-foo; use_y, permessage-foo` , []map [string ]string {
59
- map [ string ] string {"" : "permessage-foo" , "use_y" : "" },
60
- map [ string ] string {"" : "permessage-foo" }}},
59
+ {"" : "permessage-foo" , "use_y" : "" },
60
+ {"" : "permessage-foo" }}},
61
61
{`permessage-deflate; client_max_window_bits; server_max_window_bits=10 , permessage-deflate; client_max_window_bits` , []map [string ]string {
62
- map [ string ] string {"" : "permessage-deflate" , "client_max_window_bits" : "" , "server_max_window_bits" : "10" },
63
- map [ string ] string {"" : "permessage-deflate" , "client_max_window_bits" : "" }}},
62
+ {"" : "permessage-deflate" , "client_max_window_bits" : "" , "server_max_window_bits" : "10" },
63
+ {"" : "permessage-deflate" , "client_max_window_bits" : "" }}},
64
64
}
65
65
66
66
func TestParseExtensions (t * testing.T ) {
0 commit comments