From 23755bcf844edad1ac2b5759d194ac1e42915495 Mon Sep 17 00:00:00 2001 From: meatball Date: Sat, 18 May 2024 17:38:17 +0200 Subject: [PATCH] Add test case for anagram with different characters using the same unicode code points --- exercises/anagram/canonical-data.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/exercises/anagram/canonical-data.json b/exercises/anagram/canonical-data.json index bdcf6fe320..4ea7865ed8 100644 --- a/exercises/anagram/canonical-data.json +++ b/exercises/anagram/canonical-data.json @@ -239,6 +239,17 @@ "candidates": ["€a"] }, "expected": [] + }, + { + "uuid": "f71ff033-1c2c-45f3-8498-8fd20c30c306", + "description": "different characters may use the same unicode code points", + "scenarios": ["unicode"], + "property": "findAnagrams", + "input": { + "subject": "üy", + "candidates": ["uÿ"] + }, + "expected": [] } ] }