@@ -50,7 +50,7 @@ func TestRouterMiddleware(t *testing.T) {
5050 assert .Equal (t , http .StatusMethodNotAllowed , recorder .Code )
5151
5252 methods := strings .Split (recorder .Header ().Get ("Allow" ), "," )
53- sort .Sort ( sort . StringSlice ( methods ) )
53+ sort .Strings ( methods )
5454 assert .Equal (t , "GET,POST" , strings .Join (methods , "," ))
5555
5656 recorder = httptest .NewRecorder ()
@@ -82,7 +82,7 @@ func TestRouterMiddleware(t *testing.T) {
8282 assert .Equal (t , http .StatusMethodNotAllowed , recorder .Code )
8383
8484 methods = strings .Split (recorder .Header ().Get ("Allow" ), "," )
85- sort .Sort ( sort . StringSlice ( methods ) )
85+ sort .Strings ( methods )
8686 assert .Equal (t , "GET,POST" , strings .Join (methods , "," ))
8787
8888 recorder = httptest .NewRecorder ()
@@ -232,11 +232,11 @@ func TestPathConverter(t *testing.T) {
232232func TestExtractCompositParameters (t * testing.T ) {
233233 // name is the composite parameter's name, value is the value of this composit parameter, pattern is the pattern to be matched
234234 cases := []struct {
235- name string
236- value string
235+ name string
236+ value string
237237 pattern string
238- names []string
239- values []string
238+ names []string
239+ values []string
240240 }{
241241 {name : "fragment" , value : "gie" , pattern : "e" , names : []string {"fragment" }, values : []string {"gi" }},
242242 {name : "fragment" , value : "t.simpson" , pattern : ".{subfragment}" , names : []string {"fragment" , "subfragment" }, values : []string {"t" , "simpson" }},
0 commit comments