mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
add test
This commit is contained in:
parent
26c0ea6a89
commit
d09f741318
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user