Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestUnreadRune (0.12 sec)

  1. src/bufio/bufio_test.go

    	{"Hello", ", ", "World", "!"},
    	{"Hello", ", ", "", "World", "!"},
    }
    
    func TestReadRune(t *testing.T) {
    	for _, s := range segmentList {
    		readRuneSegments(t, s)
    	}
    }
    
    func TestUnreadRune(t *testing.T) {
    	segments := []string{"Hello, world:", "日本語"}
    	r := NewReader(&StringReader{data: segments})
    	got := ""
    	want := strings.Join(segments, "")
    	// Normal execution.
    	for {
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Mon Oct 28 21:04:51 UTC 2024
    - 51.6K bytes
    - Viewed (0)
Back to top