未验证 提交 365b25a3 编写于 作者: O openharmony_ci 提交者: Gitee

!4392 Modify the removeByRange of the container ArrayList in the Release branch

Merge pull request !4392 from zhangjixing/xts_Release
...@@ -712,10 +712,8 @@ describe("ArraylistTest", function () { ...@@ -712,10 +712,8 @@ describe("ArraylistTest", function () {
arrayList.add("b"); arrayList.add("b");
arrayList.add("c"); arrayList.add("c");
arrayList.add(1); arrayList.add(1);
arrayList.removeByRange(0, 8); arrayList.removeByRange(0, 9);
let res = arrayList.length; let res = arrayList.length;
let res1 = arrayList.getLastIndexOf(1); expect(res).assertEqual(0);
expect(res).assertEqual(1);
expect(res1).assertEqual(0);
}); });
}); });
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册