Add the clojure wrapper for the frequency analizer and its test.
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -74,3 +74,13 @@
|
||||
(is (= (cs/lower-case plaintext)
|
||||
(get-plaintext ciphertext symbols frequences))))))
|
||||
|
||||
(deftest frequency-analizer-get-plaintext-test
|
||||
(let [plaintext "abc"
|
||||
ciphertext "bca"
|
||||
key 1
|
||||
symbols "abc"
|
||||
frequences sf/english-letter-frequences]
|
||||
(testing "The ciphertext is 'bca' and key is 1."
|
||||
(is (= plaintext
|
||||
(frequency-analizer-get-plaintext ciphertext symbols frequences))))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user