Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestConcatTempString (0.48 sec)

  1. src/runtime/string_test.go

    		strings.Repeat("2", 1<<10) + strings.Repeat("3", 1<<10)
    	if !strings.HasPrefix(output, want) {
    		t.Fatalf("output does not start with %q:\n%s", want, output)
    	}
    }
    
    func TestConcatTempString(t *testing.T) {
    	s := "bytes"
    	b := []byte(s)
    	n := testing.AllocsPerRun(1000, func() {
    		if "prefix "+string(b)+" suffix" != "prefix bytes suffix" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 13 14:05:23 UTC 2022
    - 13.3K bytes
    - Viewed (0)
Back to top