From 5bb6777fa8ed9c90418782ce6a52185da7e1f38d Mon Sep 17 00:00:00 2001 From: Ramy Date: Thu, 3 Oct 2024 23:37:47 +0200 Subject: [PATCH] Update tests/DataStructures/SplayTreeTest.php Co-authored-by: Brandon Johnson --- tests/DataStructures/SplayTreeTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/DataStructures/SplayTreeTest.php b/tests/DataStructures/SplayTreeTest.php index 7709cf2..9c33ffa 100644 --- a/tests/DataStructures/SplayTreeTest.php +++ b/tests/DataStructures/SplayTreeTest.php @@ -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."