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

!3258 Modify the definition of copyToArray (array: array < T >) in vector

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