Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for 00123 (0.12 sec)

  1. src/bufio/bufio_test.go

    }
    
    // Test for golang.org/issue/7611
    func TestWriterReadFromUntilEOF(t *testing.T) {
    	buf := new(bytes.Buffer)
    	w := NewWriterSize(buf, 5)
    
    	// Partially fill buffer
    	n, err := w.Write([]byte("0123"))
    	if n != 4 || err != nil {
    		t.Fatalf("Write returned (%v, %v), want (4, nil)", n, err)
    	}
    
    	// Use ReadFrom to read in some data.
    	r := &emptyThenNonEmptyReader{r: strings.NewReader("abcd"), n: 3}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  2. src/bytes/bytes_test.go

    type IndexFuncTest struct {
    	in          string
    	f           predicate
    	first, last int
    }
    
    var indexFuncTests = []IndexFuncTest{
    	{"", isValidRune, -1, -1},
    	{"abc", isDigit, -1, -1},
    	{"0123", isDigit, 0, 3},
    	{"a1b", isDigit, 1, 1},
    	{space, isSpace, 0, len(space) - 3}, // last rune in space is 3 bytes
    	{"\u0e50\u0e5212hello34\u0e50\u0e51", isDigit, 0, 18},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
Back to top