mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix test
This commit is contained in:
@@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
package org.dromara.hutool.poi.csv;
|
package org.dromara.hutool.poi.csv;
|
||||||
|
|
||||||
import org.dromara.hutool.core.io.file.FileUtil;
|
|
||||||
import org.junit.jupiter.api.Assertions;
|
import org.junit.jupiter.api.Assertions;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
@@ -36,8 +35,9 @@ public class Issue3705Test {
|
|||||||
csvWriter.flush();
|
csvWriter.flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// CsvWriteConfig中默认为`\r\n`
|
||||||
Assertions.assertEquals(
|
Assertions.assertEquals(
|
||||||
"\"2024-08-20 14:24:35,\"" + FileUtil.getLineSeparator() + "最后一行",
|
"\"2024-08-20 14:24:35,\"\r\n最后一行",
|
||||||
stringWriter.toString());
|
stringWriter.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user