Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2c354b8

Browse files
SHEEVOOTSHEEVOOT
SHEEVOOT
authored and
SHEEVOOT
committed
delete test removed
1 parent 86b4287 commit 2c354b8

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

‎src/_DataStructures_/Trees/BinarySearchTree/BinarySearchTree.test.js‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,5 @@ describe('Data Structure : Binary Search Tree', () => {
2121
bst.insert(bst.root, 7);
2222
expect(bst.traverseInorder()).toEqual([2, 3, 4, 5, 7, 9]);
2323
});
24-
25-
it('Should delete() an element from Binary Search Tree', () => {
26-
bst.add(4);
27-
bst.add(9);
28-
bst.add(2);
29-
bst.delete(bst.root, 4);
30-
expect(bst.traverseInorder()).toEqual([2, 5, 9]);
31-
bst.delete(bst.root, 2);
32-
expect(bst.traverseInorder()).toEqual([5, 9]);
33-
});
3424
});
3525
});

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /