Lines Matching refs:set

32     res.set("test isEmpty:", proxy.isEmpty());
33 proxy.set("a", "aa");
34 proxy.set("b", "bb");
37 res.set("test get:", proxy.length == 2 && proxy.get("a") == "aa" && proxy.get("b") == "bb");
39 res.set("test hasKey and hasValue:", proxy.hasKey("a") && proxy.hasKey("b") && proxy.hasValue("aa") &&
42 proxy.set("c", "cc");
44 res.set("test getIndexOfKey and getIndexOfValue:", proxy.getIndexOfKey("a") === 0 && proxy.getIndexOfValue("bb") === 1);
46 res.set("test getKeyAt-1:", proxy.getKeyAt(1) == "b");
47 res.set("test getKeyAt-2:", proxy.getKeyAt(Math.floor(1.3)) == "b");
54 res.set("test forEach" + key, flag)
60 dProxy.set("a", "aa");
61 dProxy.set("b", "bb");
62 dProxy.set("c", "cc");
63 dProxy.set("d", "dd");
64 dProxy.set("e", "ee");
67 res.set("test setAll:", dProxy.length === 5);
68 res.set("test hasAll:", dProxy.hasAll(proxy));
70 res.set("test remove:", dProxy.remove("a") == "aa" && dProxy.length == 4);
72 res.set("test removeAt-1:", dProxy.removeAt(dProxy.getIndexOfKey("b")) && dProxy.length == 3);
74 res.set("test setValueAt-1:", dProxy.setValueAt(dProxy.getIndexOfKey("d"), "ee"));
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");
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);
87 res.set("test increaseCapacityTo:", true);
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 empty")
102 res.set("test GetValueAt exception when arraylist is empty:", err == "BusinessError: Container is empty")
107 res.set("test SetValueAt exception when arraylist is empty:", err == "BusinessError: Container is empty")
116 res.set("test map throw error", flag);
139 myLm.set("a", "aa");
140 myLm.set("b", "bb");