Lines Matching full:test
18 * @tc.desc:test container
29 // test isEmpty: true
30 res.set("test isEmpty:", proxy.isEmpty());
34 // test get: true
35 res.set("test get:", proxy.length == 2 && proxy.get("a") == "aa" && proxy.get("b") == "bb");
36 // test hasKey and hasValue: true
37 …res.set("test hasKey and hasValue:", proxy.hasKey("a") && proxy.hasKey("b") && proxy.hasValue("aa"…
41 // test getIndexOfKey and getIndexOfValue: true
42 …res.set("test getIndexOfKey and getIndexOfValue:", proxy.getIndexOfKey("a") === 0 && proxy.getInde…
43 // test getKeyAt: true
44 res.set("test getKeyAt:", proxy.getKeyAt(1) == "b");
46 // test keys: true
48 res.set("test keys:", iteratorKey1.next().value == "a" && iteratorKey1.next().value == "b" &&
50 // test values: true
52 …res.set("test values:", iteratorValues1.next().value == "aa" && iteratorValues1.next().value == "b…
54 // test entries: [c,cc], undefined
58 res.set("test entries1:", iteratorEntries1.next().value != undefined);
61 // test forof: [a, aa], [b, bb], [c, cc]
68 // test forin:
70 res.set("test forin", false);
72 // test forEach:
76 res.set("test forEach" + key, flag)
87 // test setAll:
89 res.set("test setAll:", dProxy.length === 5);
90 res.set("test hasAll:", dProxy.hasAll(proxy));
91 // test remove: true
92 res.set("test remove:", dProxy.remove("a") == "aa" && dProxy.length == 4);
93 // test removeAt: true
94 res.set("test removeAt:", dProxy.removeAt(dProxy.getIndexOfKey("b")) && dProxy.length == 3);
95 // test setValueAt: true
96 res.set("test setValueAt:", dProxy.setValueAt(dProxy.getIndexOfKey("d"), "ee"));
97 // test setValueAt: true
98 res.set("test getValueAt:", dProxy.getValueAt(dProxy.getIndexOfKey("d")) === "ee");
99 // test toString: true
100 res.set("test toString:", dProxy.toString() === "c:cc,d:ee,e:ee");
101 // test increaseCapacityTo: true
103 res.set("test increaseCapacityTo:", true);
104 // test clear: 0
106 res.set("test clear:", dProxy.length == 0);
114 res.set("test map throw error", flag);
135 print("Test LightWeightMap success!!!");
137 print("Test LightWeightMap fail: " + flag);