• Home
  • Raw
  • Download

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"));
36 // test values: true
38 …map.set("test values:", iteratorSetValues.next().value == "aa" && iteratorSetValues.next().value =…
40 // test entries: [cc, cc], undefined
44 map.set("test entries1:", iteratorSetEntries.next().value != undefined);
45 map.set("test entries2:", iteratorSetEntries.next().value == undefined);
47 // test forof: aa, bb, cc
55 // test forin:
57 map.set("test forin:", item);
60 // test forEach:
63 map.set("test forEach:", true)
64 // test isEmpty: false
65 map.set("test isEmpty:", !set.isEmpty());
69 // test remove: true
70 map.set("test remove:", set.remove("bb"));
71 // test clear: true
73 map.set("test clear:", set.length == 0 && !set.has("cc") && set.isEmpty());
81 map.set("test set throw error", flag);
88 // test has: true
89 … map.set("test has:", proxy.length == 2 && proxy.has("aa") && proxy.has("bb") && !proxy.has("cc"));
93 // test values: true
95 …map.set("test values:", iteratorSetValues1.next().value == "aa" && iteratorSetValues1.next().value…
97 // test entries: [cc, cc], undefined
101 map.set("test entries1:", iteratorSetEntries1.next().value != undefined);
102 map.set("test entries2:", iteratorSetEntries1.next().value == undefined);
104 // test forof: aa, bb, cc
112 // test forin:
114 map.set("test forin:", item);
117 // test forEach:
120 map.set("test forEach:", true)
122 // test isEmpty: false
123 map.set("test isEmpty:", !proxy.isEmpty());
127 // test remove: true
128 map.set("test remove:", proxy.remove("bb"));
129 // test clear: true
131 map.set("test clear:", proxy.length == 0 && !proxy.has("cc") && proxy.isEmpty());
139 map.set("test set throw error", flag);
160 print("Test HashSet success!!!");
162 print("Test HashSet fail: " + flag);