Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for pathUnescape (0.38 sec)

  1. src/net/url/url_test.go

    	for _, tt := range pathEscapeTests {
    		actual := PathEscape(tt.in)
    		if tt.out != actual {
    			t.Errorf("PathEscape(%q) = %q, want %q", tt.in, actual, tt.out)
    		}
    
    		// for bonus points, verify that escape:unescape is an identity.
    		roundtrip, err := PathUnescape(actual)
    		if roundtrip != tt.in || err != nil {
    			t.Errorf("PathUnescape(%q) = %q, %s; want %q, %s", actual, roundtrip, err, tt.in, "[no error]")
    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