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 31601ba commit 48c1fbcCopy full SHA for 48c1fbc
src/test/java/com/thealgorithms/datastructures/trees/BinaryTreeTest.java
@@ -38,10 +38,9 @@ class BinaryTreeTest {
38
t.remove(7);
39
40
BinaryTree.Node root = t.getRoot();
41
- Assertions.assertNotNull(root, "Root should not be null after removals.");
42
43
// Check the size of the tree to confirm it has remaining nodes
44
- Assertions.assertEquals(2, t.size(), // Update the expected size to 2
+ Assertions.assertEquals(2, t.size(),
45
"Tree should have 2 nodes left after removals.");
46
47
// Check if new root is correct
0 commit comments