-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added test cases for BST deletion #66 #73
Added test cases for BST deletion #66 #73
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@balajipachai please make the required changes.
it('should create BST', () => { | ||
// Creates BST | ||
bst = new BinarySearchTree(6); | ||
bst.add(4); | ||
bst.add(9); | ||
bst.add(2); | ||
bst.add(5); | ||
bst.add(8); | ||
bst.add(12); | ||
}); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@balajipachai how you are checking that the tree is created the way you wanted to create it? You have only added nodes, haven't verified that the nodes are added properly to the tee.
For that, you have to verify any of the traversal output.
I will look into it and update the PR |
Added test cases for BST deletion #66