fix Array

This commit is contained in:
Looly
2023-03-30 01:44:41 +08:00
parent 3ce7c3c36b
commit e7aa83220c
4 changed files with 113 additions and 115 deletions

View File

@@ -87,6 +87,7 @@ public class CacheConcurrentTest {
}
}
@SuppressWarnings("resource")
@Test
public void effectiveTest() {
// 模拟耗时操作消耗时间

View File

@@ -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];