Skip to content

Commit

Permalink
Ensure order independence
Browse files Browse the repository at this point in the history
  • Loading branch information
mk-mxp authored Jan 25, 2025
1 parent fdca720 commit 07f4de8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/practice/anagram/AnagramTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function testDetectsAnagramsUsingCaseInsensitiveSubject(): void
*/
public function testDetectsAnagramsUsingCaseInsensitvePossibleMatches(): void
{
$this->assertEqualsCanonicalizing(['Carthorse'], detectAnagrams('orchestra', ['cashregister', 'Carthorse', 'radishes']));
$this->assertEqualsCanonicalizing(['Carthorse'], array_values(detectAnagrams('orchestra', ['cashregister', 'Carthorse', 'radishes'])));
}

/**
Expand Down

0 comments on commit 07f4de8

Please sign in to comment.