mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
feat: 更正Issue3705Test#writeTest
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package cn.hutool.core.text.csv;
|
||||
|
||||
import cn.hutool.core.io.FileUtil;
|
||||
import cn.hutool.core.util.CharUtil;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
@@ -19,8 +19,10 @@ public class Issue3705Test {
|
||||
csvWriter.flush();
|
||||
}
|
||||
|
||||
String lineSeparator = new String(new char[]{CharUtil.CR, CharUtil.LF});
|
||||
|
||||
Assertions.assertEquals(
|
||||
"\"2024-08-20 14:24:35,\"" + FileUtil.getLineSeparator() + "最后一行",
|
||||
"\"2024-08-20 14:24:35,\"" + lineSeparator + "最后一行",
|
||||
stringWriter.toString());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user