Skip to content

Commit

Permalink
anagram: Add unicode tests
Browse files Browse the repository at this point in the history
  • Loading branch information
senekor committed Jan 23, 2024
1 parent 70abf75 commit c847416
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions exercises/anagram/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,32 @@
"candidates": ["LISTEN", "Silent"]
},
"expected": ["Silent"]
},
{
"uuid": "a6854f66-eec1-4afd-a137-62ef2870c051",
"description": "handles case of greek letters",
"scenarios": ["unicode"],
"property": "findAnagrams",
"input": {
"subject": "ΑΒΓ",
"candidates": ["ΒΓΑ", "ΒΓΔ", "γβα", "αβγ"]
},
"expected": ["ΒΓΑ", "γβα"]
},
{
"uuid": "fd3509e5-e3ba-409d-ac3d-a9ac84d13296",
"description": "different characters may have the same bytes",
"comments": [
"a⬂ => 61 E2 AC 82",
"€a => E2 82 AC 61"
],
"scenarios": ["unicode"],
"property": "findAnagrams",
"input": {
"subject": "a⬂",
"candidates": ["€a"]
},
"expected": []
}
]
}

0 comments on commit c847416

Please sign in to comment.