Skip to content

Commit

Permalink
Update tests/DataStructures/SplayTreeTest.php
Browse files Browse the repository at this point in the history
Co-authored-by: Brandon Johnson <[email protected]>
  • Loading branch information
Ramy-Badr-Ahmed and darwinz authored Oct 3, 2024
1 parent 65c4849 commit 5bb6777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/DataStructures/SplayTreeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public function testSearchExistingKey()
$node = $this->tree->search(22);

$this->assertNotNull($node, "Returned node cannot be Null.");
$this->assertNull($node->parent, "The searched node must have become the new root with has no parent");
$this->assertNull($node->parent, "The searched node must have become the new root which has no parent");
$this->assertTrue(
$node->isRoot(),
"The searched node must have become the new root. Failed to splay it correctly."
Expand Down

0 comments on commit 5bb6777

Please sign in to comment.