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 534fa04 commit 6245997Copy full SHA for 6245997
src/test/java/com/thealgorithms/tree/BinarySearchTree.java
@@ -40,7 +40,7 @@ void testBSTIsNotEmpty() {
40
@Test
41
void testRootHeight() {
42
int expectedHeight = 2;
43
- assertEquals(expectedHeight, bst.height(bst.createBST(null, 30)), "Height of root node should be 2");
+ assertEquals(expectedHeight, bst.height(bst.getRoot()), "Height of root node should be 2");
44
}
45
46
0 commit comments