diff --git a/fileutil/file_test.go b/fileutil/file_test.go index 757a023f..86b8ac13 100644 --- a/fileutil/file_test.go +++ b/fileutil/file_test.go @@ -391,7 +391,7 @@ func TestWriteCsvFile(t *testing.T) { func TestWriteMapsToCsv(t *testing.T) { assert := internal.NewAssert(t, "TestWriteMapsToCSV") - csvFilePath := "./testdata/test3.csv" + csvFilePath := "./testdata/test4.csv" records := []map[string]string{ {"Name": "Lili", "Age": "22", "gender": "female"}, {"Name": "Jim", "Age": "21", "gender": "male"}, diff --git a/fileutil/testdata/test1.csv b/fileutil/testdata/test1.csv index a3524ee3..6bbd640e 100644 --- a/fileutil/testdata/test1.csv +++ b/fileutil/testdata/test1.csv @@ -2,3 +2,4 @@ Lili,22,female Jim,21,male + diff --git a/fileutil/testdata/test2.csv b/fileutil/testdata/test2.csv index a3524ee3..6bbd640e 100644 --- a/fileutil/testdata/test2.csv +++ b/fileutil/testdata/test2.csv @@ -2,3 +2,4 @@ Lili,22,female Jim,21,male + diff --git a/fileutil/testdata/test4.csv b/fileutil/testdata/test4.csv new file mode 100644 index 00000000..875d813f --- /dev/null +++ b/fileutil/testdata/test4.csv @@ -0,0 +1,3 @@ +Name;Age;gender +Lili;22;female +Jim;21;male