Lines Matching full:test
18 * @tc.desc:test container
31 // test has: true
32 map.set("test has:", set.length == 2 && set.has("aa") && set.has("bb") && !set.has("cc"));
35 // test getFirstKey and getLastKey: true
36 …map.set("test getFirstKey and getLastKey:", set.getFirstValue() == "aa" && set.getLastValue() == "…
37 // test getLowerValue and getHigherValue out: true
38 map.set("test getLowerValue and getHigherValue", set.getLowerValue("bb") == "aa" &&
42 // test values: true
44 …map.set("test values:", iteratorSetValues.next().value == "aa" && iteratorSetValues.next().value =…
46 // test entries: [cc, cc], undefined
50 map.set("test entries1:", iteratorSetEntries.next().value != undefined);
51 map.set("test entries2:", iteratorSetEntries.next().value == undefined);
53 // test forof: aa, bb, cc
61 // test forin:
63 map.set("test forin:", item);
66 // test forEach:
70 map.set("test forEach" + key, setFlag);
74 // test isEmpty: false
75 map.set("test isEmpty:", !set.isEmpty());
79 // test popFirst and popLast: true
80 map.set("test popFirst and popLast:", set.length == 5 && set.popFirst() == "aa" &&
82 // test remove: true
83 map.set("test remove:", set.remove("bb") && set.length == 2 && !set.has("bb"));
84 // test clear: true
86 map.set("test clear:", set.length == 0 && !set.has("cc") && set.isEmpty());
94 map.set("test set throw error", flag);
101 // test has: true
102 … map.set("test has:", proxy.length == 2 && proxy.has("aa") && proxy.has("bb") && !proxy.has("cc"));
105 // test getFirstKey and getLastKey: true
106 …map.set("test getFirstKey and getLastKey:", proxy.getFirstValue() == "aa" && proxy.getLastValue() …
107 // test getLowerValue and getHigherValue out: true
108 map.set("test getLowerValue and getHigherValue", proxy.getLowerValue("bb") == "aa" &&
112 // test values: true
114 …map.set("test values:", iteratorSetValues1.next().value == "aa" && iteratorSetValues1.next().value…
116 // test entries: [cc, cc], undefined
120 map.set("test entries1:", iteratorSetEntries1.next().value != undefined);
121 map.set("test entries2:", iteratorSetEntries1.next().value == undefined);
123 // test forof: aa, bb, cc
131 // test forin:
133 map.set("test forin:", item);
136 // test forEach:
140 map.set("test forEach" + key, setFlag1);
144 // test isEmpty: false
145 map.set("test isEmpty:", !proxy.isEmpty());
149 // test popFirst and popLast: true
150 map.set("test popFirst and popLast:", proxy.length == 5 && proxy.popFirst() == "aa" &&
152 // test remove: true
153 map.set("test remove:", proxy.remove("bb") && proxy.length == 2 && !proxy.has("bb"));
154 // test clear: true
156 map.set("test clear:", proxy.length == 0 && !proxy.has("cc") && proxy.isEmpty());
164 map.set("test set throw error", flag);
186 print("Test TreeSet success!!!");
188 print("Test TreeSet fail: " + flag);