Lines Matching full:test
25 print("### test TreeMap start ###")
26 // test get, out: true
27 print("test get, out:", map.length == 2 && map.get("a") == "aa" && map.get("b") == "bb");
28 // test hasKey and hasValue, out: true
29 print("test hasKey and hasValue, out:", map.hasKey("a") && map.hasKey("b") && map.hasValue("aa") &&
33 // test getFirstKey and getLastKey, out: true
34 print("test getFirstKey and getLastKey, out:", map.getFirstKey() == "a" && map.getLastKey() == "c");
35 // test getLowerKey and getHigherKey, out: true
36 print("test getLowerKey and getHigherKey, out:", map.getLowerKey("b") == "a" && map.getLowerKey("a"…
38 // test keys, out: true
40 print("test keys, out:", iteratorKey.next().value == "a" && iteratorKey.next().value == "b" &&
42 // test values, out: true
44 print("test values, out:", iteratorValues.next().value == "aa" && iteratorValues.next().value == "b…
46 // test entries, out: [c,cc], undefined
50 print("test entries, out:", iteratorEntries.next().value);
53 // test forof, out: [a, aa], [b, bb], [c, cc]
54 print("test forof, out:");
58 // test forin, out:
59 print("test forin, out:");
63 // test forEach, out:
65 print("test forEach, out:");
75 // test setAll, out: 3
77 print("test setAll, out:", dmap.length);
78 // test remove, out: true
79 print("test remove, out:", dmap.remove("a") == "aa" && dmap.length == 2);
80 // test replace, out: true
81 print("test replace, out:", dmap.replace("b", "dd") && dmap.get("b") == "dd");
82 // test clear, out: 0
84 print("test clear, out:", dmap.length);