mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix test
This commit is contained in:
parent
ef12890c67
commit
6a0777c945
@ -63,6 +63,8 @@ public class FileUtilTest {
|
||||
final String parseSmbPath = FileUtil.getAbsolutePath(smbPath);
|
||||
assertEquals(smbPath, parseSmbPath);
|
||||
assertTrue(FileUtil.isAbsolutePath(smbPath));
|
||||
Console.log(Paths.get(smbPath));
|
||||
Console.log(Paths.get(smbPath).isAbsolute());
|
||||
assertTrue(Paths.get(smbPath).isAbsolute());
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
package cn.hutool.core.text.csv;
|
||||
|
||||
import cn.hutool.core.io.FileUtil;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
@ -19,8 +18,9 @@ public class Issue3705Test {
|
||||
csvWriter.flush();
|
||||
}
|
||||
|
||||
// CsvWriteConfig中默认为`\r\n`
|
||||
Assertions.assertEquals(
|
||||
"\"2024-08-20 14:24:35,\"" + FileUtil.getLineSeparator() + "最后一行",
|
||||
"\"2024-08-20 14:24:35,\"\r\n最后一行",
|
||||
stringWriter.toString());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user