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

!8439 Modifying Use Case Errors in Hashmap

Merge pull request !8439 from bwx1067111/master
...@@ -460,7 +460,8 @@ describe("HashMapTest", function () { ...@@ -460,7 +460,8 @@ describe("HashMapTest", function () {
hashMap.set(5, "E"); hashMap.set(5, "E");
let res = hashMap.keys(); let res = hashMap.keys();
for (let i = 0; i < hashMap.length; i++) { for (let i = 0; i < hashMap.length; i++) {
console.log(res.next()); let result = hashMap.hasKey(res.next().value);
expect(result).assertEqual(true);
} }
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册