We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32f25ef commit 8a8207fCopy full SHA for 8a8207f
src/avl-tree/__test__/avl.spec.ts
@@ -49,5 +49,10 @@ describe("AVL Tree", () => {
49
expect(right.getValue()).toBe(9);
50
expect(avlTree.getRoot().nodeHeight()).toBe(1);
51
});
52
+
53
+ it("should not add node with the same value", () => {
54
+ const isNodeInsterted = avlTree.insert(new Int(9));
55
+ expect(isNodeInsterted).toBeFalsy();
56
+ })
57
})
58
0 commit comments