Skip to content

Commit 6245997

Browse files
author
Krishnan M
committed
updated build issues
1 parent 534fa04 commit 6245997

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/thealgorithms/tree/BinarySearchTree.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void testBSTIsNotEmpty() {
4040
@Test
4141
void testRootHeight() {
4242
int expectedHeight = 2;
43-
assertEquals(expectedHeight, bst.height(bst.createBST(null, 30)), "Height of root node should be 2");
43+
assertEquals(expectedHeight, bst.height(bst.getRoot()), "Height of root node should be 2");
4444
}
4545

4646

0 commit comments

Comments
 (0)