Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for TestScanLineReturnButNoNewline (0.09 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/bufio/scan_test.go

    	lines := []string{
    		"abcdefghijklmn",
    		"opqrstuvwxyz",
    	}
    	testNoNewline(text, lines, t)
    }
    
    // Test that the line splitter handles a final line with a carriage return but no newline.
    func TestScanLineReturnButNoNewline(t *testing.T) {
    	const text = "abcdefghijklmn\nopqrstuvwxyz\r"
    	lines := []string{
    		"abcdefghijklmn",
    		"opqrstuvwxyz",
    	}
    	testNoNewline(text, lines, t)
    }
    
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Fri Sep 22 16:22:42 GMT 2023
    - 14.3K bytes
    - Click Count (0)
Back to Top