Lines Matching full:test
25 print("### test TreeSet start ###")
26 // test has, out: true
27 print("test has, out:", set.length == 2 && set.has("aa") && set.has("bb") && !set.has("cc"));
30 // test getFirstKey and getLastKey, out: true
31 print("test getFirstKey and getLastKey, out:", set.getFirstValue() == "aa" && set.getLastValue() ==…
32 // test getLowerValue and getHigherValue out: true
33 print("test getLowerValue and getHigherValue out:", set.getLowerValue("bb") == "aa" &&
36 // test values, out: true
38 print("test values, out:", iteratorSetValues.next().value == "aa" && iteratorSetValues.next().value…
40 // test entries, out: [cc, cc], undefined
44 print("test entries, out:", iteratorSetEntries.next().value);
47 // test forof, out: aa, bb, cc
48 print("test forof, out:");
53 // test forin, out:
54 print("test forin, out:");
59 // test forEach, out:
61 print("test forEach, out:");
70 // test isEmpty, out: false
71 print("test isEmpty, out:", set.isEmpty());
75 // test popFirst and popLast, out: true
76 print("test popFirst and popLast, out:", set.length == 5 && set.popFirst() == "aa" &&
78 // test remove, out: true
79 print("test remove, out:", set.remove("bb") && set.length == 2 && !set.has("bb"));
80 // test clear, out: true
82 print("test clear, out:", set.length == 0 && !set.has("cc") && set.isEmpty());