lazy set: Increase code coverage.

This was pvreviously covered by tests for the buddy list.

We shouldn't rely on other code to complete code coverage
for this module. In the future it would be good to add
more tests to the lazy set tests to directly cover lazy
set functionality.
This commit is contained in:
evykassirer 2023-10-31 11:13:24 -07:00 committed by Tim Abbott
parent e2a6d0f4b2
commit beead8e614
1 changed files with 8 additions and 0 deletions

View File

@ -23,6 +23,14 @@ run_test("map", () => {
);
});
run_test("size", () => {
const ls = new LazySet([1, 2]);
assert.deepEqual(ls.size, 2);
ls._make_set();
assert.deepEqual(ls.size, 2);
});
run_test("conversions", () => {
blueslip.expect("error", "not a number", 2);
const ls = new LazySet([1, 2]);