File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
exercises/practice/anagram Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -77,3 +77,9 @@ include = false
77
77
[33d3f67e-fbb9-49d3-a90e-0beb00861da7 ]
78
78
description = " words other than themselves can be anagrams"
79
79
reimplements = " a0705568-628c-4b55-9798-82e4acde51ca"
80
+
81
+ [a6854f66-eec1-4afd-a137-62ef2870c051 ]
82
+ description = " handles case of greek letters"
83
+
84
+ [fd3509e5-e3ba-409d-ac3d-a9ac84d13296 ]
85
+ description = " different characters may have the same bytes"
Original file line number Diff line number Diff line change 97
97
(test-equal? "words other than themselves can be anagrams "
98
98
(anagrams-for "LISTEN "
99
99
'("LISTEN " "Silent " ))
100
- '("Silent " ))))
100
+ '("Silent " ))
101
+
102
+ (test-equal? "handles case of greek letters "
103
+ (sort (anagrams-for "ΑΒΓ "
104
+ '("ΒΓΑ " "ΒΓΔ " "γβα " "αβγ " ))
105
+ string<?)
106
+ '("ΒΓΑ " "γβα " ))
107
+
108
+ (test-equal? "different characters may have the same bytes "
109
+ (anagrams-for "a⬂ "
110
+ '("€a " ))
111
+ '() )))
101
112
102
113
(run-tests suite))
You can’t perform that action at this time.
0 commit comments