• Home
  • Raw
  • Download

Lines Matching full:test

18  * @tc.desc:test container
31 // test isEmpty: true
32 res.set("test isEmpty:", proxy.isEmpty());
36 // test get: true
37 res.set("test get:", proxy.length == 2 && proxy.get("a") == "aa" && proxy.get("b") == "bb");
38 // test hasKey and hasValue: true
39 …res.set("test hasKey and hasValue:", proxy.hasKey("a") && proxy.hasKey("b") && proxy.hasValue("aa"…
43 // test getIndexOfKey and getIndexOfValue: true
44 …res.set("test getIndexOfKey and getIndexOfValue:", proxy.getIndexOfKey("a") === 0 && proxy.getInde…
45 // test getKeyAt: true
46 res.set("test getKeyAt-1:", proxy.getKeyAt(1) == "b");
47 res.set("test getKeyAt-2:", proxy.getKeyAt(Math.floor(1.3)) == "b");
50 // test forEach:
54 res.set("test forEach" + key, flag)
65 // test setAll:
67 res.set("test setAll:", dProxy.length === 5);
68 res.set("test hasAll:", dProxy.hasAll(proxy));
69 // test remove: true
70 res.set("test remove:", dProxy.remove("a") == "aa" && dProxy.length == 4);
71 // test removeAt: true
72 res.set("test removeAt-1:", dProxy.removeAt(dProxy.getIndexOfKey("b")) && dProxy.length == 3);
73 // test setValueAt: true
74 res.set("test setValueAt-1:", dProxy.setValueAt(dProxy.getIndexOfKey("d"), "ee"));
75 // test getValueAt: true
76 res.set("test getValueAt:", dProxy.getValueAt(dProxy.getIndexOfKey("d")) === "ee");
77 res.set("test getValueAt:", dProxy.getValueAt(Math.floor(0)) === "cc");
78 res.set("test getValueAt:", dProxy.getValueAt(Math.floor(1)) === "ee");
79 res.set("test setValueAt-2:", dProxy.setValueAt(Math.floor(1.3), "ff"));
80 res.set("test getValueAt-2:", dProxy.getValueAt(Math.floor(1.3)) === "ff");
81 // test toString: true
82 res.set("test toString:", dProxy.toString() === "c:cc,d:ff,e:ee");
83 res.set("test removeAt-2:", dProxy.removeAt(Math.floor(1.3)) && dProxy.length == 2);
84 // test increaseCapacityTo: true
87 res.set("test increaseCapacityTo:", true);
88 // test clear: 0
90 res.set("test clear:", dProxy.length == 0);
91 res.set("test 'clear' ret:", ret === undefined);
97 …res.set("test GetKeyAt exception when arraylist is empty:", err == "BusinessError: Container is em…
102 …res.set("test GetValueAt exception when arraylist is empty:", err == "BusinessError: Container is …
107 …res.set("test SetValueAt exception when arraylist is empty:", err == "BusinessError: Container is …
116 res.set("test map throw error", flag);
147 print("Test LightWeightMap success!!!");
149 print("Test LightWeightMap fail: " + flag);
152 export let lightweightmapRes = "Test LightWeightMap done";