mirror of https://github.com/golang/go.git
encoding/csv: test that carriage return is handled in Write
R=golang-codereviews, r CC=golang-codereviews https://golang.org/cl/46310043
This commit is contained in:
parent
095de8795a
commit
39a396d2ba
|
|
@ -26,6 +26,8 @@ var writeTests = []struct {
|
|||
{Input: [][]string{{"abc"}, {"def"}}, Output: "abc\ndef\n"},
|
||||
{Input: [][]string{{"abc\ndef"}}, Output: "\"abc\ndef\"\n"},
|
||||
{Input: [][]string{{"abc\ndef"}}, Output: "\"abc\r\ndef\"\r\n", UseCRLF: true},
|
||||
{Input: [][]string{{"abc\rdef"}}, Output: "\"abcdef\"\r\n", UseCRLF: true},
|
||||
{Input: [][]string{{"abc\rdef"}}, Output: "\"abc\rdef\"\n", UseCRLF: false},
|
||||
}
|
||||
|
||||
func TestWrite(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue