@@ -38,29 +38,29 @@ var parseExtensionTests = []struct {
3838 value string
3939 extensions []map [string ]string
4040}{
41- {`foo` , []map [string ]string {map [ string ] string {"" : "foo" }}},
41+ {`foo` , []map [string ]string {{"" : "foo" }}},
4242 {`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" }}},
4545 {`foo; bar="b,a;z"` , []map [string ]string {
46- map [ string ] string {"" : "foo" , "bar" : "b,a;z" }}},
46+ {"" : "foo" , "bar" : "b,a;z" }}},
4747 {`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" }}},
5050 {`foo, bar; baz=2 junk` , []map [string ]string {
51- map [ string ] string {"" : "foo" }}},
51+ {"" : "foo" }}},
5252 {`foo junk, bar; baz=2 junk` , nil },
5353 {`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" }}},
5656 {`permessage-foo; x="10"` , []map [string ]string {
57- map [ string ] string {"" : "permessage-foo" , "x" : "10" }}},
57+ {"" : "permessage-foo" , "x" : "10" }}},
5858 {`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" }}},
6161 {`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" : "" }}},
6464}
6565
6666func TestParseExtensions (t * testing.T ) {
0 commit comments