File tree 2 files changed +14
-0
lines changed
exercises/practice/anagram
2 files changed +14
-0
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 90
90
'(" Silent" ))))
91
91
92
92
93
+ (ert-deftest test-handles-case-of-greek-letters ()
94
+ (should (equal (anagrams-for " ΑΒΓ" '(" ΒΓΑ" " ΒΓΔ" " γβα" " αβγ" ))
95
+ '(" ΒΓΑ" " γβα" ))))
96
+
97
+ (ert-deftest different-characters-may-have-the-same-bytes ()
98
+ (should (equal (anagrams-for " a⬂" '(" €a" ))
99
+ '())))
100
+
93
101
(provide 'anagram-test )
94
102
; ;; anagram-test.el ends here
You can’t perform that action at this time.
0 commit comments