Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 5,349 for fmtB (0.05 sec)

  1. test/typeparam/setsimp.dir/main.go

    		panic(fmt.Sprintf("(%v).Len() == %d, want 4", s1, got))
    	}
    	if !s1.Contains(1) {
    		panic(fmt.Sprintf("(%v).Contains(1) == false, want true", s1))
    	}
    	if s1.Contains(5) {
    		panic(fmt.Sprintf("(%v).Contains(5) == true, want false", s1))
    	}
    	vals := s1.Values()
    	sort.Ints(vals)
    	w1 := []int{1, 2, 3, 4}
    	if !a.SliceEqual(vals, w1) {
    		panic(fmt.Sprintf("(%v).Values() == %v, want %v", s1, vals, w1))
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  2. test/mergemul.go

    	model := "    a" + size + ", b" + size
    	model += fmt.Sprintf(" = %%d*n%s + %%d*(n%s+%%d), (%%d+%%d)*n%s + (%%d*%%d)", size, size, size)
    
    	test := fmt.Sprintf(model, m1, m2, k, m1, m2, m2, k)
    	test += fmt.Sprintf(`
        if a%s != b%s {
            fmt.Printf("MergeAddTest(%d, %d, %d, %s) failed\n")
            fmt.Printf("%%d != %%d\n", a%s, b%s)
            panic("FAIL")
        }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Sep 03 14:29:38 UTC 2017
    - 3.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/mkbuiltin.go

    	fmt.Fprintln(&b)
    	fmt.Fprintln(&b, "package typecheck")
    	fmt.Fprintln(&b)
    	fmt.Fprintln(&b, `import (`)
    	fmt.Fprintln(&b, `      "cmd/compile/internal/types"`)
    	fmt.Fprintln(&b, `      "cmd/internal/src"`)
    	fmt.Fprintln(&b, `)`)
    
    	fmt.Fprintln(&b, `
    // Not inlining this function removes a significant chunk of init code.
    //go:noinline
    func newSig(params, results []*types.Field) *types.Type {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:56:49 UTC 2023
    - 6K bytes
    - Viewed (0)
  4. src/syscall/mkasm.go

    		if !trampolines[fn] {
    			trampolines[fn] = true
    			fmt.Fprintf(&out, "TEXT ยท%s_trampoline(SB),NOSPLIT,$0-0\n", fn)
    			if goos == "openbsd" && arch == "ppc64" {
    				fmt.Fprintf(&out, "\tCALL\t%s(SB)\n", fn)
    				fmt.Fprintf(&out, "\tRET\n")
    			} else {
    				fmt.Fprintf(&out, "\tJMP\t%s(SB)\n", fn)
    			}
    		}
    	}
    	err = os.WriteFile(fmt.Sprintf("zsyscall_%s_%s.s", goos, arch), out.Bytes(), 0644)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 03:24:15 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/util/duration/duration.go

    		if m == 0 {
    			return fmt.Sprintf("%dh", hours)
    		}
    		return fmt.Sprintf("%dh%dm", hours, m)
    	} else if hours < 48 {
    		return fmt.Sprintf("%dh", hours)
    	} else if hours < 24*8 {
    		h := hours % 24
    		if h == 0 {
    			return fmt.Sprintf("%dd", hours/24)
    		}
    		return fmt.Sprintf("%dd%dh", hours/24, h)
    	} else if hours < 24*365*2 {
    		return fmt.Sprintf("%dd", hours/24)
    	} else if hours < 24*365*8 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 29 09:44:02 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  6. test/typeparam/sliceimp.dir/main.go

    		panic(fmt.Sprintf("a.Equal(%v, %v) = false, want true", s1, s2))
    	}
    	s2 = append(s2, 4)
    	if a.Equal(s1, s2) {
    		panic(fmt.Sprintf("a.Equal(%v, %v) = true, want false", s1, s2))
    	}
    
    	s3 := []float64{1, 2, math.NaN()}
    	if !a.Equal(s3, s3) {
    		panic(fmt.Sprintf("a.Equal(%v, %v) = false, want true", s3, s3))
    	}
    
    	if a.Equal(s1, nil) {
    		panic(fmt.Sprintf("a.Equal(%v, nil) = true, want false", s1))
    	}
    	if a.Equal(nil, s1) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 4.6K bytes
    - Viewed (0)
  7. src/math/big/floatexample_test.go

    	// +Inf  +Inf    0
    }
    
    func ExampleRoundingMode() {
    	operands := []float64{2.6, 2.5, 2.1, -2.1, -2.5, -2.6}
    
    	fmt.Print("   x")
    	for mode := big.ToNearestEven; mode <= big.ToPositiveInf; mode++ {
    		fmt.Printf("  %s", mode)
    	}
    	fmt.Println()
    
    	for _, f64 := range operands {
    		fmt.Printf("%4g", f64)
    		for mode := big.ToNearestEven; mode <= big.ToPositiveInf; mode++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. pkg/kubelet/apis/config/validation/validation.go

    		allErrors = append(allErrors, fmt.Errorf("invalid configuration: systemCgroups (--system-cgroups) was specified and cgroupRoot (--cgroup-root) was not specified"))
    	}
    	if kc.EventBurst < 0 {
    		allErrors = append(allErrors, fmt.Errorf("invalid configuration: eventBurst (--event-burst) %v must not be a negative number", kc.EventBurst))
    	}
    	if kc.EventRecordQPS < 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 10 17:13:59 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  9. test/rotate.go

    package main
    
    import (
    	"bufio"
    	"flag"
    	"fmt"
    	"os"
    	"strings"
    )
    
    func main() {
    	flag.Parse()
    
    	b := bufio.NewWriter(os.Stdout)
    	defer b.Flush()
    
    	fmt.Fprintf(b, "%s\n", prolog)
    
    	for logBits := uint(3); logBits <= 6; logBits++ {
    		typ := fmt.Sprintf("int%d", 1<<logBits)
    		fmt.Fprint(b, strings.Replace(checkFunc, "XXX", typ, -1))
    		fmt.Fprint(b, strings.Replace(checkFunc, "XXX", "u"+typ, -1))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 3.3K bytes
    - Viewed (0)
  10. src/internal/fuzz/encoding.go

    			if utf8.ValidRune(t) {
    				fmt.Fprintf(b, "rune(%q)\n", t)
    			} else {
    				fmt.Fprintf(b, "int32(%v)\n", t)
    			}
    		case byte: // uint8
    			// For bytes, we arbitrarily prefer the character interpretation.
    			// (Every byte has a valid character encoding.)
    			fmt.Fprintf(b, "byte(%q)\n", t)
    		case []byte: // []uint8
    			fmt.Fprintf(b, "[]byte(%q)\n", t)
    		default:
    			panic(fmt.Sprintf("unsupported type: %T", t))
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 30 16:39:12 UTC 2022
    - 11K bytes
    - Viewed (0)
Back to top