mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-08-18 20:38:02 +08:00
change extName
This commit is contained in:
@@ -392,6 +392,10 @@ public class FileUtilTest {
|
||||
path = FileUtil.isWindows() ? "d:\\aaa\\bbb\\cc\\fff.xlsx" : "~/Desktop/hutool/fff.xlsx";
|
||||
mainName = FileUtil.extName(path);
|
||||
Assert.assertEquals("xlsx", mainName);
|
||||
|
||||
path = FileUtil.isWindows() ? "d:\\aaa\\bbb\\cc\\fff.tar.gz" : "~/Desktop/hutool/fff.tar.gz";
|
||||
mainName = FileUtil.extName(path);
|
||||
Assert.assertEquals("tar.gz", mainName);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user