Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestBuilderString (0.28 sec)

  1. src/strings/builder_test.go

    	}
    	check(t, &b, "hello ")
    	n, err = b.WriteString("world")
    	if err != nil || n != 5 {
    		t.Errorf("WriteString: got %d,%s; want 5,nil", n, err)
    	}
    	check(t, &b, "hello world")
    }
    
    func TestBuilderString(t *testing.T) {
    	var b Builder
    	b.WriteString("alpha")
    	check(t, &b, "alpha")
    	s1 := b.String()
    	b.WriteString("beta")
    	check(t, &b, "alphabeta")
    	s2 := b.String()
    	b.WriteString("gamma")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 19 19:51:15 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top