describe("DoublyLinkedList tests 2", () => {
    it("Insert out of bounds index", () => {
        const list = new DoublyLinkedList<number>([1]);
        expect(() => list.insert(5, 5)).toThrowError("Index out of bounds.");
    });