This commit is contained in:
looly
2021-11-30 11:59:34 +08:00
parent 109725da79
commit 5ba1dde50d
2 changed files with 8 additions and 8 deletions

View File

@@ -45,7 +45,7 @@ public class CollUtilTest {
ArrayList<Integer> exceptRemovedList = CollUtil.newArrayList(2, 3);
ArrayList<Integer> exceptResultList = CollUtil.newArrayList(1);
ArrayList<Integer> resultList = CollUtil.removeWithAddIf(list, ele -> 1 == ele);
List<Integer> resultList = CollUtil.removeWithAddIf(list, ele -> 1 == ele);
Assert.assertEquals(list, exceptRemovedList);
Assert.assertEquals(resultList, exceptResultList);