Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestScanLineEmptyFinalLineWithCR (0.16 sec)

  1. src/bufio/scan_test.go

    		"abcdefghijklmn",
    		"opqrstuvwxyz",
    		"",
    	}
    	testNoNewline(text, lines, t)
    }
    
    // Test that the line splitter handles a final empty line with a carriage return but no newline.
    func TestScanLineEmptyFinalLineWithCR(t *testing.T) {
    	const text = "abcdefghijklmn\nopqrstuvwxyz\n\r"
    	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