1 2 3 4 5 6 7 8
// Sets can hold at least 64K values. var N = 1 << 16; var s = new Set; for (var i = 0; i < N; i++) assertEq(s.add(i), s); for (var i = 0; i < N; i++) assertEq(s.has(i), true);