it("should merge 2d selections with append=true", () => { const s = new Selection() s.update(some_2d_selection, true, true) s.update(other_2d_selection, true, true) expect(s.multiline_indices).to.be.deep.equal({2: [0, 1, 2, 3]}) })
it("should be clearable", () => { const s = new Selection() s.update(some_1d_selection, true, false) s.clear() expect(s.indices).to.deep.equal([]) })
it("should be updatable with append=true", () => { const s = new Selection() s.update(some_1d_selection, true, true) s.update(other_1d_selection, true, true) expect(s.indices).to.be.deep.equal([0, 1, 4, 5]) })