Add the default frequency factory.
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-11-03 20:33:23 +02:00
parent fcae272944
commit ddfd5c473d
3 changed files with 25 additions and 1 deletions
@@ -9,3 +9,13 @@
(is (= "etaoinsrhldcumfpgwybvkxjqz"
(map-to-string symbol-map))))))
(deftest default-frequency-factory-test
(testing "Factory supports languages: English (en), Ukrainian (uk). If language code is unidentified, then it must have the 'en'."
(are [language-code expected-map-size]
(->> (default-frequency-factory language-code)
count
(= expected-map-size))
"en" 26
"uk" 34
"Maybe a code" 26)))