Skip to content

Commit 48c1fbc

Browse files
resolved bugs
1 parent 31601ba commit 48c1fbc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/test/java/com/thealgorithms/datastructures/trees/BinaryTreeTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@ class BinaryTreeTest {
3838
t.remove(7);
3939

4040
BinaryTree.Node root = t.getRoot();
41-
Assertions.assertNotNull(root, "Root should not be null after removals.");
4241

4342
// Check the size of the tree to confirm it has remaining nodes
44-
Assertions.assertEquals(2, t.size(), // Update the expected size to 2
43+
Assertions.assertEquals(2, t.size(),
4544
"Tree should have 2 nodes left after removals.");
4645

4746
// Check if new root is correct

0 commit comments

Comments
 (0)