|
2 | 2 | (:require [clojure.test :refer [deftest testing is]] |
3 | 3 | atbash-cipher)) |
4 | 4 |
|
5 | | -(deftest encode_test_1 |
| 5 | +(deftest ^:encode encode_test_1 |
6 | 6 | (testing "encode yes" |
7 | 7 | (is (= "bvh" |
8 | 8 | (atbash-cipher/encode "yes"))))) |
9 | 9 |
|
10 | | -(deftest encode_test_2 |
| 10 | +(deftest ^:encode encode_test_2 |
11 | 11 | (testing "encode no" |
12 | 12 | (is (= "ml" |
13 | 13 | (atbash-cipher/encode "no"))))) |
14 | 14 |
|
15 | | -(deftest encode_test_3 |
| 15 | +(deftest ^:encode encode_test_3 |
16 | 16 | (testing "encode OMG" |
17 | 17 | (is (= "lnt" |
18 | 18 | (atbash-cipher/encode "OMG"))))) |
19 | 19 |
|
20 | | -(deftest encode_test_4 |
| 20 | +(deftest ^:encode encode_test_4 |
21 | 21 | (testing "encode spaces" |
22 | 22 | (is (= "lnt" |
23 | 23 | (atbash-cipher/encode "O M G"))))) |
24 | 24 |
|
25 | | -(deftest encode_test_5 |
| 25 | +(deftest ^:encode encode_test_5 |
26 | 26 | (testing "encode mindblowingly" |
27 | 27 | (is (= "nrmwy oldrm tob" |
28 | 28 | (atbash-cipher/encode "mindblowingly"))))) |
29 | 29 |
|
30 | | -(deftest encode_test_6 |
| 30 | +(deftest ^:encode encode_test_6 |
31 | 31 | (testing "encode numbers" |
32 | 32 | (is (= "gvhgr mt123 gvhgr mt" |
33 | 33 | (atbash-cipher/encode "Testing,1 2 3, testing."))))) |
34 | 34 |
|
35 | | -(deftest encode_test_7 |
| 35 | +(deftest ^:encode encode_test_7 |
36 | 36 | (testing "encode deep thought" |
37 | 37 | (is (= "gifgs rhurx grlm" |
38 | 38 | (atbash-cipher/encode "Truth is fiction."))))) |
39 | 39 |
|
40 | | -(deftest encode_test_8 |
| 40 | +(deftest ^:encode encode_test_8 |
41 | 41 | (testing "encode all the letters" |
42 | 42 | (is (= "gsvjf rxpyi ldmul cqfnk hlevi gsvoz abwlt" |
43 | 43 | (atbash-cipher/encode "The quick brown fox jumps over the lazy dog."))))) |
44 | 44 |
|
45 | | -(deftest decode_test_1 |
| 45 | +(deftest ^:decode decode_test_1 |
46 | 46 | (testing "decode exercism" |
47 | 47 | (is (= "exercism" |
48 | 48 | (atbash-cipher/decode "vcvix rhn"))))) |
49 | 49 |
|
50 | | -(deftest decode_test_2 |
| 50 | +(deftest ^:decode decode_test_2 |
51 | 51 | (testing "decode a sentence" |
52 | 52 | (is (= "anobstacleisoftenasteppingstone" |
53 | 53 | (atbash-cipher/decode "zmlyh gzxov rhlug vmzhg vkkrm thglm v"))))) |
54 | 54 |
|
55 | | -(deftest decode_test_3 |
| 55 | +(deftest ^:decode decode_test_3 |
56 | 56 | (testing "decode numbers" |
57 | 57 | (is (= "testing123testing" |
58 | 58 | (atbash-cipher/decode "gvhgr mt123 gvhgr mt"))))) |
59 | 59 |
|
60 | | -(deftest decode_test_4 |
| 60 | +(deftest ^:decode decode_test_4 |
61 | 61 | (testing "decode all the letters" |
62 | 62 | (is (= "thequickbrownfoxjumpsoverthelazydog" |
63 | 63 | (atbash-cipher/decode "gsvjf rxpyi ldmul cqfnk hlevi gsvoz abwlt"))))) |
0 commit comments