Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestDifferencePath (0.43 sec)

  1. src/net/http/pattern_test.go

    		}
    		got := commonPath(pat1, pat2)
    		if got != test.want {
    			t.Errorf("%s vs. %s: got %q, want %q", test.p1, test.p2, got, test.want)
    		}
    	}
    }
    
    func TestDifferencePath(t *testing.T) {
    	for _, test := range []struct {
    		p1, p2 string
    		want   string
    	}{
    		{"/a/{x}", "/{x}/a", "/a/x"},
    		{"/{x}/a", "/a/{x}", "/x/a"},
    		{"/a/{z}/", "/{z}/a/", "/a/z/"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 16:36:30 UTC 2024
    - 15K bytes
    - Viewed (0)
Back to top