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 80b935e commit caa6f55
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 @@ -66,7 +66,7 @@ public function testDetectsThreeAnagrams(): void
*/
public function testDetectsMultipleAnagramsWithDifferentCase(): void
{
$this->assertEqualsCanonicalizing(['Eons', 'ONES'], detectAnagrams('nose', ['Eons', 'ONES']));
$this->assertEqualsCanonicalizing(['Eons', 'ONES'], array_values(detectAnagrams('nose', ['Eons', 'ONES'])));
}

/**
Expand Down

0 comments on commit caa6f55

Please sign in to comment.