mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-08-18 20:38:02 +08:00
add test
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package cn.hutool.core.text.csv;
|
||||
|
||||
import cn.hutool.core.io.resource.ResourceUtil;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class IssueICRMKATest {
|
||||
@Test
|
||||
public void issueICRMAKTest() {
|
||||
CsvReader reader = CsvUtil.getReader();
|
||||
CsvData data = reader.read(ResourceUtil.getUtf8Reader("issueICRMKA.csv"));
|
||||
final CsvRow row = data.getRow(1);
|
||||
Assertions.assertEquals("6.3\" Google Pixel 9 Pro 128 GB Beige", row.get(0));
|
||||
}
|
||||
}
|
2
hutool-core/src/test/resources/issueICRMKA.csv
Normal file
2
hutool-core/src/test/resources/issueICRMKA.csv
Normal file
@@ -0,0 +1,2 @@
|
||||
config,price,unit,package_name,package,equipment,pic_path,crawler_date,set_Discount,installment_details,installment_price,installment_time
|
||||
6.3" Google Pixel 9 Pro 128 GB Beige,94999,₽,fwefwe,fewfew,"Cores - 8x(3.1 GHz), 16 GB, 1 SIM, OLED, 2856x1280, 50+48+48 MP camera, NFC, 5G, GPS, 4700 mAh more details",["https://xx.png"],2025/8/1 4:05,,gerwgrweg,fwefw,fwefwe
|
Can't render this file because it contains an unexpected character in line 2 and column 4.
|
Reference in New Issue
Block a user