|
2 | 2 | (:require [clojure.test :refer [deftest is]] |
3 | 3 | squeaky-clean)) |
4 | 4 |
|
5 | | -(deftest ^{:task 1} clean-single-letter |
| 5 | +(deftest ^{:task 1 :task-1 true} clean-single-letter |
6 | 6 | (is (= "A" (squeaky-clean/clean "A")))) |
7 | 7 |
|
8 | | -(deftest ^{:task 1} clean-clean-string |
| 8 | +(deftest ^{:task 1 :task-1 true} clean-clean-string |
9 | 9 | (is (= "àḃç" (squeaky-clean/clean "àḃç")))) |
10 | 10 |
|
11 | | -(deftest ^{:task 1} clean-string-with-spaces |
| 11 | +(deftest ^{:task 1 :task-1 true} clean-string-with-spaces |
12 | 12 | (is (= "my___Id" (squeaky-clean/clean "my Id")))) |
13 | 13 |
|
14 | | -(deftest ^{:task 1} clean-empty-string |
| 14 | +(deftest ^{:task 1 :task-1 true} clean-empty-string |
15 | 15 | (is (= "" (squeaky-clean/clean "")))) |
16 | 16 |
|
17 | | -(deftest ^{:task 2} clean-string-with-control-char |
| 17 | +(deftest ^{:task 2 :task-2 true} clean-string-with-control-char |
18 | 18 | (is (= "myCTRLId" (squeaky-clean/clean "my\u0080Id")))) |
19 | 19 |
|
20 | | -(deftest ^{:task 3} convert-kebab-to-camel-case |
| 20 | +(deftest ^{:task 3 :task-3 true} convert-kebab-to-camel-case |
21 | 21 | (is (= "àḂç" (squeaky-clean/clean "à-ḃç")))) |
22 | 22 |
|
23 | | -(deftest ^{:task 4} clean-string-with-special-characters |
| 23 | +(deftest ^{:task 4 :task-4 true} clean-string-with-special-characters |
24 | 24 | (is (= "MyFinder" (squeaky-clean/clean "My😀😀Finder😀")))) |
25 | 25 |
|
26 | | -(deftest ^{:task 4} clean-string-with-numbers |
| 26 | +(deftest ^{:task 4 :task-4 true} clean-string-with-numbers |
27 | 27 | (is (= "MyFinder" (squeaky-clean/clean "1My2Finder3")))) |
28 | 28 |
|
29 | | -(deftest ^{:task 5} omit-lower-case-greek-letters |
| 29 | +(deftest ^{:task 5 :task-5 true} omit-lower-case-greek-letters |
30 | 30 | (is (= "MyΟFinder" (squeaky-clean/clean "MyΟβιεγτFinder")))) |
31 | 31 |
|
32 | | -(deftest ^{:task 5} combine-conversions |
| 32 | +(deftest ^{:task 5 :task-5 true} combine-conversions |
33 | 33 | (is (= "_AbcĐCTRL" (squeaky-clean/clean "9 -abcĐ😀ω\0")))) |
0 commit comments