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 dd5bce6 commit e10524c
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 @@ -138,7 +138,7 @@ public function testWordsAreNotAnagramsOfThemselves(): void
*/
public function testWordsAreNotAnagramsOfThemselvesEvenIfLetterCaseIsPartiallyDifferent(): void
{
$this->assertEqualsCanonicalizing([], detectAnagrams('BANANA', ['Banana']));
$this->assertEqualsCanonicalizing([], array_values(detectAnagrams('BANANA', ['Banana'])));
}

/**
Expand Down

0 comments on commit e10524c

Please sign in to comment.