Skip to content

Commit

Permalink
fix: fix unit test for WriteMapsToCsv
Browse files Browse the repository at this point in the history
  • Loading branch information
duke-git committed Jan 1, 2024
1 parent b2c3fa0 commit 27b5702
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion fileutil/file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down
1 change: 1 addition & 0 deletions fileutil/testdata/test1.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ Lili,22,female
Jim,21,male



1 change: 1 addition & 0 deletions fileutil/testdata/test2.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ Lili,22,female
Jim,21,male



3 changes: 3 additions & 0 deletions fileutil/testdata/test4.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Name;Age;gender
Lili;22;female
Jim;21;male

0 comments on commit 27b5702

Please sign in to comment.