mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix Array
This commit is contained in:
@@ -87,6 +87,7 @@ public class CacheConcurrentTest {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("resource")
|
||||
@Test
|
||||
public void effectiveTest() {
|
||||
// 模拟耗时操作消耗时间
|
||||
|
@@ -517,6 +517,13 @@ public class ArrayUtilTest {
|
||||
Assert.assertArrayEquals(g, result);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void replaceTest2(){
|
||||
int[] a = new int[0];
|
||||
a = ArrayUtil.replace(a, 0, 1);
|
||||
Assert.assertEquals(1, a.length);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void setOrAppendTest() {
|
||||
final String[] arr = new String[0];
|
||||
|
Reference in New Issue
Block a user