Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for formatDesc (0.56 sec)

  1. src/mime/mediatype_test.go

    			t.Errorf("ParseMediaType(%q): in case of invalid parameters: expected type %q, got %q", tt.in, tt.mt, mt)
    		}
    	}
    }
    
    type formatTest struct {
    	typ    string
    	params map[string]string
    	want   string
    }
    
    var formatTests = []formatTest{
    	{"noslash", map[string]string{"X": "Y"}, "noslash; x=Y"}, // e.g. Content-Disposition values (RFC 2183); issue 11289
    	{"foo bar/baz", nil, ""},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 26 17:58:37 UTC 2022
    - 18.1K bytes
    - Viewed (0)
  2. src/time/format_test.go

    		if string(got) != tt.want {
    			t.Errorf("appendInt(%d, %d) = %s, want %s", tt.in, tt.width, got, tt.want)
    		}
    	}
    }
    
    type FormatTest struct {
    	name   string
    	format string
    	result string
    }
    
    var formatTests = []FormatTest{
    	{"ANSIC", ANSIC, "Wed Feb  4 21:00:57 2009"},
    	{"UnixDate", UnixDate, "Wed Feb  4 21:00:57 PST 2009"},
    	{"RubyDate", RubyDate, "Wed Feb 04 21:00:57 -0800 2009"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:58:29 UTC 2024
    - 36.4K bytes
    - Viewed (0)
Back to top