From ade86e319fec17188d64fc452b6afa03213d5aa5 Mon Sep 17 00:00:00 2001 From: KKlochko Date: Sat, 9 Sep 2023 21:08:35 +0300 Subject: [PATCH] Add symbol fixtures. --- .../symbol_fixtures.clj | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/cipher_analytical_machine/symbol_fixtures.clj diff --git a/src/cipher_analytical_machine/symbol_fixtures.clj b/src/cipher_analytical_machine/symbol_fixtures.clj new file mode 100644 index 0000000..f69ce9b --- /dev/null +++ b/src/cipher_analytical_machine/symbol_fixtures.clj @@ -0,0 +1,20 @@ +(ns cipher-analytical-machine.symbol_fixtures + (:require [clojure.string :as cs]) + (:gen-class)) + +(defn get-lower-ukrainian-alphabet + "Return the ukrainian alphabet for the symbols string" + [] + "абвгґдеєжзиіїйклмнопрстуфхцчшщьюя") + +(defn get-ukrainian-alphabet + "Return the ukrainian alphabet for the symbols string" + [] + (let [letters (get-lower-ukrainian-alphabet)] + (str letters (cs/upper-case letters)))) + +(defn get-digits + "Return digits for the symbols string" + [] + "0123456789") +