Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testPrintf (0.11 sec)

  1. src/fmt/fmt_test.go

    func zeroFill(prefix string, width int, suffix string) string {
    	return prefix + strings.Repeat("0", width-len(suffix)) + suffix
    }
    
    func TestSprintf(t *testing.T) {
    	for _, tt := range fmtTests {
    		s := Sprintf(tt.fmt, tt.val)
    		i := strings.Index(tt.out, "PTR")
    		if i >= 0 && i < len(s) {
    			var pattern, chars string
    			switch {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
Back to top