Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestScanLineEmptyFinalLine (0.13 sec)

  1. src/bufio/scan_test.go

    	lines := []string{
    		"abcdefghijklmn",
    		"opqrstuvwxyz",
    	}
    	testNoNewline(text, lines, t)
    }
    
    // Test that the line splitter handles a final empty line.
    func TestScanLineEmptyFinalLine(t *testing.T) {
    	const text = "abcdefghijklmn\nopqrstuvwxyz\n\n"
    	lines := []string{
    		"abcdefghijklmn",
    		"opqrstuvwxyz",
    		"",
    	}
    	testNoNewline(text, lines, t)
    }
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Sep 22 16:22:42 UTC 2023
    - 14.3K bytes
    - Viewed (0)
Back to top