Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestShouldEscape (0.14 sec)

  1. src/net/url/url_test.go

    	{'9', encodeHost, false},
    	{'A', encodeHost, false},
    	{'z', encodeHost, false},
    	{'_', encodeHost, false},
    	{'-', encodeHost, false},
    	{'.', encodeHost, false},
    }
    
    func TestShouldEscape(t *testing.T) {
    	for _, tt := range shouldEscapeTests {
    		if shouldEscape(tt.in, tt.mode) != tt.escape {
    			t.Errorf("shouldEscape(%q, %v) returned %v; expected %v", tt.in, tt.mode, !tt.escape, tt.escape)
    		}
    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