Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 4,133 for sprint (0.13 sec)

  1. test/fixedbugs/bug402.go

    var a = []int64{
    	0.0005 * 1e9,
    	0.001 * 1e9,
    	0.005 * 1e9,
    	0.01 * 1e9,
    	0.05 * 1e9,
    	0.1 * 1e9,
    	0.5 * 1e9,
    	1 * 1e9,
    	5 * 1e9,
    }
    
    func main() {
    	s := ""
    	for _, v := range a {
    		s += fmt.Sprint(v) + " "
    	}
    	if s != "500000 1000000 5000000 10000000 50000000 100000000 500000000 1000000000 5000000000 " {
    		panic(s)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 518 bytes
    - Viewed (0)
  2. pkg/util/sets/set_test.go

    	containsTest := New[string]()
    	for i := 0; i < 1000; i++ {
    		containsTest.Insert(fmt.Sprint(i))
    	}
    	sortOrder := []string{}
    	for i := 0; i < 1000; i++ {
    		sortOrder = append(sortOrder, fmt.Sprint(rand.Intn(1000)))
    	}
    	b.ResetTimer()
    	var s Set[string] // ensure no inlining
    	b.Run("insert", func(b *testing.B) {
    		for n := 0; n < b.N; n++ {
    			s = New[string]()
    			for i := 0; i < 1000; i++ {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 05:26:03 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  3. test/fixedbugs/bug271.go

    // license that can be found in the LICENSE file.
    
    // https://golang.org/issue/662
    
    package main
    
    import "fmt"
    
    func f() (int, int) { return 1, 2 }
    
    func main() {
    	s := fmt.Sprint(f())
    	if s != "1 2" {	// with bug, was "{1 2}"
    		println("BUG")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 366 bytes
    - Viewed (0)
  4. src/context/x_test.go

    	}
    }
    
    type key1 int
    type key2 int
    
    func (k key2) String() string { return fmt.Sprintf("%[1]T(%[1]d)", k) }
    
    var k1 = key1(1)
    var k2 = key2(1) // same int as k1, different type
    var k3 = key2(3) // same type as k2, different int
    
    func TestValues(t *testing.T) {
    	check := func(c Context, nm, v1, v2, v3 string) {
    		if v, ok := c.Value(k1).(string); ok == (len(v1) == 0) || v != v1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  5. pkg/test/failer.go

    }
    
    func (e *errorWrapper) Fatal(args ...any) {
    	e.mu.Lock()
    	defer e.mu.Unlock()
    	if e.failed == nil {
    		e.failed = errors.New(fmt.Sprint(args...))
    	}
    	runtime.Goexit()
    }
    
    func (e *errorWrapper) Fatalf(format string, args ...any) {
    	e.Fatal(fmt.Sprintf(format, args...))
    }
    
    func (e *errorWrapper) Helper() {
    }
    
    func (e *errorWrapper) Skip(args ...any) {
    	e.Fatal(args...)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Jul 15 23:58:50 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  6. test/fixedbugs/bug344.go

    	// do whatever you like, just don't crash.
    	i := 42
    	a := []*int{&i, &i, &i, &i}
    	x := a[0]
    	goto start  // ERROR "jumps into block"
    	z := 1
    	_ = z
    	for _, x = range a {	// GCCGO_ERROR "block"
    	start:
    		fmt.Sprint(*x)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 466 bytes
    - Viewed (0)
  7. operator/cmd/mesh/manifest-generate.go

    	// Filter is the list of components to render
    	Filter []string
    }
    
    var kubeClientFunc func() (kube.CLIClient, error)
    
    func (a *ManifestGenerateArgs) String() string {
    	var b strings.Builder
    	b.WriteString("InFilenames:   " + fmt.Sprint(a.InFilenames) + "\n")
    	b.WriteString("OutFilename:   " + a.OutFilename + "\n")
    	b.WriteString("Set:           " + fmt.Sprint(a.Set) + "\n")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 01:18:49 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  8. test/fixedbugs/issue29264.go

    	got := fmt.Sprint(a)
    	want := strings.Repeat("[", 100) + "42" + strings.Repeat("]", 100)
    	if got != want {
    		fmt.Printf("got  %q\nwant %q\n", got, want)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 18 00:13:58 UTC 2018
    - 882 bytes
    - Viewed (0)
  9. pilot/pkg/config/kube/gateway/deploymentcontroller_test.go

    	defaultGateway.Annotations = map[string]string{ControllerVersionAnnotation: fmt.Sprint(1)}
    	gws.Update(defaultGateway)
    	expectReconciled()
    	assert.Equal(t, assert.ChannelHasItem(t, writes), buildPatch(ControllerVersion))
    	assert.ChannelIsEmpty(t, writes)
    	// Test fake doesn't actual do Apply, so manually do this
    	defaultGateway.Annotations = map[string]string{ControllerVersionAnnotation: fmt.Sprint(ControllerVersion)}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 21:43:20 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/test_fuzz_dup_cache.txt

    )
    
    func main() {
    	for i := 0; i < 10; i++ {
    		b := byte(0)
    		if i > 5 {
    			b = byte(i)
    		}
            tmpl := "go test fuzz v1\nint(%d)\n"
    		if err := os.WriteFile(filepath.Join(os.Args[1], fmt.Sprint(i)), []byte(fmt.Sprintf(tmpl, b)), 0777); err != nil {
    			panic(err)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 1K bytes
    - Viewed (0)
Back to top