mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -782,7 +782,7 @@ public class URLUtil {
|
||||
* @since 5.3.11
|
||||
*/
|
||||
public static String getDataUriBase64(String mimeType, String data) {
|
||||
return getDataUri(mimeType, null, "BASE64", data);
|
||||
return getDataUri(mimeType, null, "base64", data);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -16,7 +16,9 @@ public class CsvReaderTest {
|
||||
public void readTest() {
|
||||
CsvReader reader = new CsvReader();
|
||||
CsvData data = reader.read(ResourceUtil.getReader("test.csv", CharsetUtil.CHARSET_UTF_8));
|
||||
Assert.assertEquals("关注\"对象\"", data.getRow(0).get(2));
|
||||
Assert.assertEquals("sss,sss", data.getRow(0).get(0));
|
||||
Assert.assertEquals("性别", data.getRow(0).get(2));
|
||||
Assert.assertEquals("关注\"对象\"", data.getRow(0).get(3));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@@ -1 +1 @@
|
||||
姓名,"性别",关注"对象",年龄
|
||||
"sss,sss",姓名,"性别",关注"对象",年龄
|
Can't render this file because it contains an unexpected character in line 1 and column 23.
|
Reference in New Issue
Block a user