mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add test
This commit is contained in:
@@ -670,6 +670,13 @@ public class StrUtilTest {
|
||||
Assert.assertEquals(str, ret);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void truncateUtf8Test2() {
|
||||
final String str = "这是This一";
|
||||
final String ret = StrUtil.truncateUtf8(str, 12);
|
||||
Assert.assertEquals("这是Thi...", ret);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void truncateByByteLengthTest() {
|
||||
final String str = "This is English";
|
||||
|
Reference in New Issue
Block a user