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

!6061 容器类Vector::CopyToArray用例功能错误修改

Merge pull request !6061 from huangzhenghua/master1023
...@@ -776,7 +776,7 @@ describe("VectorTest", function () { ...@@ -776,7 +776,7 @@ describe("VectorTest", function () {
vector.add(14); vector.add(14);
let arr1 = ["a", "b", "c"]; let arr1 = ["a", "b", "c"];
vector.copyToArray(arr1); vector.copyToArray(arr1);
let a = ["a", "b", "c", 4, 3, 1, 2, 14]; let a = [4, 3, 1, 2, 14];
for (let i = 0; i < a.length; i++) { for (let i = 0; i < a.length; i++) {
expect(arr1[i]).assertEqual(a[i]); expect(arr1[i]).assertEqual(a[i]);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册