Skip to content

Commit 8ae6377

Browse files
authored
sync anagram tests
1 parent d89d711 commit 8ae6377

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

exercises/practice/anagram/.meta/tests.toml

+6
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,9 @@ include = false
7777
[33d3f67e-fbb9-49d3-a90e-0beb00861da7]
7878
description = "words other than themselves can be anagrams"
7979
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"

exercises/practice/anagram/anagram-test.el

+8
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,13 @@
9090
'("Silent"))))
9191

9292

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+
93101
(provide 'anagram-test)
94102
;;; anagram-test.el ends here

0 commit comments

Comments
 (0)