Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestParseFailure (0.13 sec)

  1. src/net/url/url_test.go

    	for _, tt := range requritests {
    		s := tt.url.RequestURI()
    		if s != tt.out {
    			t.Errorf("%#v.RequestURI() == %q (expected %q)", tt.url, s, tt.out)
    		}
    	}
    }
    
    func TestParseFailure(t *testing.T) {
    	// Test that the first parse error is returned.
    	const url = "%gh&%ij"
    	_, err := ParseQuery(url)
    	errStr := fmt.Sprint(err)
    	if !strings.Contains(errStr, "%gh") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:52:38 UTC 2024
    - 52.1K bytes
    - Viewed (0)
Back to top