未验证 提交 1b96fda4 编写于 作者: O openharmony_ci 提交者: Gitee

!4390 Modify the removeByRange of the container ArrayList in the master branch

Merge pull request !4390 from zhangjixing/xts_master
...@@ -1058,11 +1058,9 @@ describe("ArraylistTest", function () { ...@@ -1058,11 +1058,9 @@ 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.
先完成此消息的编辑!
想要评论请 注册