Skip to content

Commit

Permalink
sync anagram tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kmarker1101 authored Jun 16, 2024
1 parent d89d711 commit 8ae6377
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions exercises/practice/anagram/.meta/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,9 @@ include = false
[33d3f67e-fbb9-49d3-a90e-0beb00861da7]
description = "words other than themselves can be anagrams"
reimplements = "a0705568-628c-4b55-9798-82e4acde51ca"

[a6854f66-eec1-4afd-a137-62ef2870c051]
description = "handles case of greek letters"

[fd3509e5-e3ba-409d-ac3d-a9ac84d13296]
description = "different characters may have the same bytes"
8 changes: 8 additions & 0 deletions exercises/practice/anagram/anagram-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,13 @@
'("Silent"))))


(ert-deftest test-handles-case-of-greek-letters ()
(should (equal (anagrams-for "ΑΒΓ" '("ΒΓΑ" "ΒΓΔ" "γβα" "αβγ"))
'("ΒΓΑ" "γβα"))))

(ert-deftest different-characters-may-have-the-same-bytes ()
(should (equal (anagrams-for "a⬂" '("€a"))
'())))

(provide 'anagram-test)
;;; anagram-test.el ends here

0 comments on commit 8ae6377

Please sign in to comment.