Skip to content

Commit a45651f

Browse files
authored
Remove uuids from test functions (#729)
* kindergarten-garden: make test descriptions identical to the ones from .toml * kindergarten-garden: rename test functions * list-ops: rename test functions * list-ops: make test descriptions identical to the ones from .toml * dominoes: rename test functions * armstrong-numbers: rename test functions * armstrong-numbers: change require order for clojure.test functions * spiral-matrix: make test descriptions identical to the ones from .toml * spiral-matrix: rename test functions * spiral-matrix: change require order for clojure.test functions * pythagorean-triplet: rename test functions * word-count: rename test functions * minesweeper: rename test functions * sublist: change require order for clojure.test functions * sublist: make test descriptions identical to the ones from .toml * sublist: rename test functions
1 parent 0431eeb commit a45651f

File tree

9 files changed

+176
-176
lines changed

9 files changed

+176
-176
lines changed
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
11
(ns armstrong-numbers-test
2-
(:require [clojure.test :refer [deftest is testing]]
2+
(:require [clojure.test :refer [deftest testing is]]
33
armstrong-numbers))
44

5-
(deftest test-c1ed103c-258d-45b2-be73-d8c6d9580c7b
5+
(deftest armstrong?_test_1
66
(testing "Zero is an Armstrong number"
77
(is (true? (armstrong-numbers/armstrong? 0)))))
88

9-
(deftest test-579e8f03-9659-4b85-a1a2-d64350f6b17a
9+
(deftest armstrong?_test_2
1010
(testing "Single-digit numbers are Armstrong numbers"
1111
(is (true? (armstrong-numbers/armstrong? 5)))))
1212

13-
(deftest test-2d6db9dc-5bf8-4976-a90b-b2c2b9feba60
13+
(deftest armstrong?_test_3
1414
(testing "There are no two-digit Armstrong numbers"
1515
(is (false? (armstrong-numbers/armstrong? 10)))))
1616

17-
(deftest test-509c087f-e327-4113-a7d2-26a4e9d18283
17+
(deftest armstrong?_test_4
1818
(testing "Three-digit number that is an Armstrong number"
1919
(is (true? (armstrong-numbers/armstrong? 153)))))
2020

21-
(deftest test-7154547d-c2ce-468d-b214-4cb953b870cf
21+
(deftest armstrong?_test_5
2222
(testing "Three-digit number that is not an Armstrong number"
2323
(is (false? (armstrong-numbers/armstrong? 100)))))
2424

25-
(deftest test-6bac5b7b-42e9-4ecb-a8b0-4832229aa103
25+
(deftest armstrong?_test_6
2626
(testing "Four-digit number that is an Armstrong number"
2727
(is (true? (armstrong-numbers/armstrong? 9474)))))
2828

29-
(deftest test-eed4b331-af80-45b5-a80b-19c9ea444b2e
29+
(deftest armstrong?_test_7
3030
(testing "Four-digit number that is not an Armstrong number"
3131
(is (false? (armstrong-numbers/armstrong? 9475)))))
3232

33-
(deftest test-f971ced7-8d68-4758-aea1-d4194900b864
33+
(deftest armstrong?_test_8
3434
(testing "Seven-digit number that is an Armstrong number"
3535
(is (true? (armstrong-numbers/armstrong? 9926315)))))
3636

37-
(deftest test-7ee45d52-5d35-4fbd-b6f1-5c8cd8a67f18
37+
(deftest armstrong?_test_9
3838
(testing "Seven-digit number that is not an Armstrong number"
3939
(is (false? (armstrong-numbers/armstrong? 9926314)))))
4040

41-
(deftest test-5ee2fdf8-334e-4a46-bb8d-e5c19c02c148
41+
(deftest armstrong?_test_10
4242
(testing "Armstrong number containing seven zeroes"
4343
(is (true? (armstrong-numbers/armstrong? 186709961001538790100634132976990)))))
4444

45-
(deftest test-12ffbf10-307a-434e-b4ad-c925680e1dd4
45+
(deftest armstrong?_test_11
4646
(testing "The largest and last Armstrong number"
4747
(is (true? (armstrong-numbers/armstrong? 115132219018763992565095597973971522401)))))

exercises/practice/dominoes/test/dominoes_test.clj

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,54 +2,54 @@
22
(:require [clojure.test :refer [deftest testing is]]
33
dominoes))
44

5-
(deftest test-31a673f2-5e54-49fe-bd79-1c1dae476c9c
6-
(testing "Empty input = empty output"
5+
(deftest can-chain?_test_1
6+
(testing "empty input = empty output"
77
(is (true? (dominoes/can-chain? [])))))
88

9-
(deftest test-4f99b933-367b-404b-8c6d-36d5923ee476
10-
(testing "Singleton input = singleton output"
9+
(deftest can-chain?_test_2
10+
(testing "singleton input = singleton output"
1111
(is (true? (dominoes/can-chain? [[1 1]])))))
1212

13-
(deftest test-91122d10-5ec7-47cb-b759-033756375869
14-
(testing "Singleton that can't be chained"
13+
(deftest can-chain?_test_3
14+
(testing "singleton that can't be chained"
1515
(is (false? (dominoes/can-chain? [[1 2]])))))
1616

17-
(deftest test-be8bc26b-fd3d-440b-8e9f-d698a0623be3
18-
(testing "Three elements"
17+
(deftest can-chain?_test_4
18+
(testing "three elements"
1919
(is (true? (dominoes/can-chain? [[1 2] [3 1] [2 3]])))))
2020

21-
(deftest test-99e615c6-c059-401c-9e87-ad7af11fea5c
22-
(testing "Can reverse dominoes"
21+
(deftest can-chain?_test_5
22+
(testing "can reverse dominoes"
2323
(is (true? (dominoes/can-chain? [[1 2] [1 3] [2 3]])))))
2424

25-
(deftest test-51f0c291-5d43-40c5-b316-0429069528c9
26-
(testing "Can't be chained"
25+
(deftest can-chain?_test_6
26+
(testing "can't be chained"
2727
(is (false? (dominoes/can-chain? [[1 2] [4 1] [2 3]])))))
2828

29-
(deftest test-9a75e078-a025-4c23-8c3a-238553657f39
30-
(testing "Disconnected - simple"
29+
(deftest can-chain?_test_7
30+
(testing "disconnected - simple"
3131
(is (false? (dominoes/can-chain? [[1 1] [2 2]])))))
3232

33-
(deftest test-0da0c7fe-d492-445d-b9ef-1f111f07a301
34-
(testing "Disconnected - double loop"
33+
(deftest can-chain?_test_8
34+
(testing "disconnected - double loop"
3535
(is (false? (dominoes/can-chain? [[1 2] [2 1] [3 4] [4 3]])))))
3636

37-
(deftest test-b6087ff0-f555-4ea0-a71c-f9d707c5994a
38-
(testing "Disconnected - single isolated"
37+
(deftest can-chain?_test_9
38+
(testing "disconnected - single isolated"
3939
(is (false? (dominoes/can-chain? [[1 2] [2 3] [3 1] [4 4]])))))
4040

41-
(deftest test-2174fbdc-8b48-4bac-9914-8090d06ef978
42-
(testing "Need backtrack"
41+
(deftest can-chain?_test_10
42+
(testing "need backtrack"
4343
(is (true? (dominoes/can-chain? [[1 2] [2 3] [3 1] [2 4] [2 4]])))))
4444

45-
(deftest test-167bb480-dfd1-4318-a20d-4f90adb4a09f
46-
(testing "Separate loops"
45+
(deftest can-chain?_test_11
46+
(testing "separate loops"
4747
(is (true? (dominoes/can-chain? [[1 2] [2 3] [3 1] [1 1] [2 2] [3 3]])))))
4848

49-
(deftest test-cd061538-6046-45a7-ace9-6708fe8f6504
50-
(testing "Nine elements"
49+
(deftest can-chain?_test_12
50+
(testing "nine elements"
5151
(is (true? (dominoes/can-chain? [[1 2] [5 3] [3 1] [1 2] [2 4] [1 6] [2 3] [3 4] [5 6]])))))
5252

53-
(deftest test-44704c7c-3adb-4d98-bd30-f45527cf8b49
54-
(testing "Separate three-domino loops"
53+
(deftest can-chain?_test_13
54+
(testing "separate three-domino loops"
5555
(is (false? (dominoes/can-chain? [[1 2] [2 3] [3 1] [4 5] [5 6] [6 4]])))))

exercises/practice/kindergarten-garden/test/kindergarten_garden_test.clj

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,87 +2,87 @@
22
(:require [clojure.test :refer [deftest testing is]]
33
kindergarten-garden))
44

5-
(deftest test-1fc316ed-17ab-4fba-88ef-3ae78296b692
6-
(testing "Partial garden -> Garden with single student"
5+
(deftest garden_test_1
6+
(testing "partial garden -> garden with single student"
77
(is (= [:radishes :clover :grass :grass]
88
(:alice (kindergarten-garden/garden "RC\nGG"))))))
99

10-
(deftest test-acd19dc1-2200-4317-bc2a-08f021276b40
11-
(testing "Partial garden -> Different garden with single student"
10+
(deftest garden_test_2
11+
(testing "partial garden -> different garden with single student"
1212
(is (= [:violets :clover :radishes :clover]
1313
(:alice (kindergarten-garden/garden "VC\nRC"))))))
1414

15-
(deftest test-c376fcc8-349c-446c-94b0-903947315757
16-
(testing "Partial garden -> Garden with two students"
15+
(deftest garden_test_3
16+
(testing "partial garden -> garden with two students"
1717
(is (= [:clover :grass :radishes :clover]
1818
(:bob (kindergarten-garden/garden "VVCG\nVVRC"))))))
1919

20-
(deftest test-2d620f45-9617-4924-9d27-751c80d17db9
21-
(testing "Partial garden -> Multiple students for the same garden with three students -> Second student's garden"
20+
(deftest garden_test_4
21+
(testing "partial garden -> multiple students for the same garden with three students -> second student's garden"
2222
(is (= [:clover :clover :clover :clover]
2323
(:bob (kindergarten-garden/garden "VVCCGG\nVVCCGG"))))))
2424

25-
(deftest test-57712331-4896-4364-89f8-576421d69c44
26-
(testing "Partial garden -> Multiple students for the same garden with three students -> Third student's garden"
25+
(deftest garden_test_5
26+
(testing "partial garden -> multiple students for the same garden with three students -> third student's garden"
2727
(is (= [:grass :grass :grass :grass]
2828
(:charlie (kindergarten-garden/garden "VVCCGG\nVVCCGG"))))))
2929

30-
(deftest test-149b4290-58e1-40f2-8ae4-8b87c46e765b
31-
(testing "Full garden -> For Alice first student's garden"
30+
(deftest garden_test_6
31+
(testing "full garden -> for Alice first student's garden"
3232
(is (= [:violets :radishes :violets :radishes]
3333
(:alice (kindergarten-garden/garden "VRCGVVRVCGGCCGVRGCVCGCGV\nVRCCCGCRRGVCGCRVVCVGCGCV"))))))
3434

35-
(deftest test-ba25dbbc-10bd-4a37-b18e-f89ecd098a5e
36-
(testing "Full garden -> For Bob second student's garden"
35+
(deftest garden_test_7
36+
(testing "full garden -> for Bob second student's garden"
3737
(is (= [:clover :grass :clover :clover]
3838
(:bob (kindergarten-garden/garden "VRCGVVRVCGGCCGVRGCVCGCGV\nVRCCCGCRRGVCGCRVVCVGCGCV"))))))
3939

40-
(deftest test-566b621b-f18e-4c5f-873e-be30544b838c
41-
(testing "Full garden -> For Charlie"
40+
(deftest garden_test_8
41+
(testing "full garden -> for Charlie"
4242
(is (= [:violets :violets :clover :grass]
4343
(:charlie (kindergarten-garden/garden "VRCGVVRVCGGCCGVRGCVCGCGV\nVRCCCGCRRGVCGCRVVCVGCGCV"))))))
4444

45-
(deftest test-3ad3df57-dd98-46fc-9269-1877abf612aa
46-
(testing "Full garden -> For David"
45+
(deftest garden_test_9
46+
(testing "full garden -> for David"
4747
(is (= [:radishes :violets :clover :radishes]
4848
(:david (kindergarten-garden/garden "VRCGVVRVCGGCCGVRGCVCGCGV\nVRCCCGCRRGVCGCRVVCVGCGCV"))))))
4949

50-
(deftest test-0f0a55d1-9710-46ed-a0eb-399ba8c72db2
51-
(testing "Full garden -> For Eve"
50+
(deftest garden_test_10
51+
(testing "full garden -> for Eve"
5252
(is (= [:clover :grass :radishes :grass]
5353
(:eve (kindergarten-garden/garden "VRCGVVRVCGGCCGVRGCVCGCGV\nVRCCCGCRRGVCGCRVVCVGCGCV"))))))
5454

55-
(deftest test-a7e80c90-b140-4ea1-aee3-f4625365c9a4
56-
(testing "Full garden -> For Fred"
55+
(deftest garden_test_11
56+
(testing "full garden -> for Fred"
5757
(is (= [:grass :clover :violets :clover]
5858
(:fred (kindergarten-garden/garden "VRCGVVRVCGGCCGVRGCVCGCGV\nVRCCCGCRRGVCGCRVVCVGCGCV"))))))
5959

60-
(deftest test-9d94b273-2933-471b-86e8-dba68694c615
61-
(testing "Full garden -> For Ginny"
60+
(deftest garden_test_12
61+
(testing "full garden -> for Ginny"
6262
(is (= [:clover :grass :grass :clover]
6363
(:ginny (kindergarten-garden/garden "VRCGVVRVCGGCCGVRGCVCGCGV\nVRCCCGCRRGVCGCRVVCVGCGCV"))))))
6464

65-
(deftest test-f55bc6c2-ade8-4844-87c4-87196f1b7258
66-
(testing "Full garden -> For Harriet"
65+
(deftest garden_test_13
66+
(testing "full garden -> for Harriet"
6767
(is (= [:violets :radishes :radishes :violets]
6868
(:harriet (kindergarten-garden/garden "VRCGVVRVCGGCCGVRGCVCGCGV\nVRCCCGCRRGVCGCRVVCVGCGCV"))))))
6969

70-
(deftest test-759070a3-1bb1-4dd4-be2c-7cce1d7679ae
71-
(testing "Full garden -> For Ileana"
70+
(deftest garden_test_14
71+
(testing "full garden -> for Ileana"
7272
(is (= [:grass :clover :violets :clover]
7373
(:ileana (kindergarten-garden/garden "VRCGVVRVCGGCCGVRGCVCGCGV\nVRCCCGCRRGVCGCRVVCVGCGCV"))))))
7474

75-
(deftest test-78578123-2755-4d4a-9c7d-e985b8dda1c6
76-
(testing "Full garden -> For Joseph"
75+
(deftest garden_test_15
76+
(testing "full garden -> for Joseph"
7777
(is (= [:violets :clover :violets :grass]
7878
(:joseph (kindergarten-garden/garden "VRCGVVRVCGGCCGVRGCVCGCGV\nVRCCCGCRRGVCGCRVVCVGCGCV"))))))
7979

80-
(deftest test-6bb66df7-f433-41ab-aec2-3ead6e99f65b
81-
(testing "Full garden -> For Kincaid second to last student's garden"
80+
(deftest garden_test_16
81+
(testing "full garden -> for Kincaid second to last student's garden"
8282
(is (= [:grass :clover :clover :grass]
8383
(:kincaid (kindergarten-garden/garden "VRCGVVRVCGGCCGVRGCVCGCGV\nVRCCCGCRRGVCGCRVVCVGCGCV"))))))
8484

85-
(deftest test-d7edec11-6488-418a-94e6-ed509e0fa7eb
86-
(testing "Full garden -> For Larry last student's garden"
85+
(deftest garden_test_17
86+
(testing "full garden -> for Larry last student's garden"
8787
(is (= [:grass :violets :clover :violets]
8888
(:larry (kindergarten-garden/garden "VRCGVVRVCGGCCGVRGCVCGCGV\nVRCCCGCRRGVCGCRVVCVGCGCV"))))))

exercises/practice/list-ops/test/list_ops_test.clj

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,90 +2,90 @@
22
(:require [clojure.test :refer [deftest testing is]]
33
list-ops))
44

5-
(deftest test-485b9452-bf94-40f7-a3db-c3cf4850066a
5+
(deftest append_test_1
66
(testing "append entries to a vector and return the new vector -> empty vectors"
77
(is (= [] (list-ops/append [] [])))))
88

9-
(deftest test-2c894696-b609-4569-b149-8672134d340a
9+
(deftest append_test_2
1010
(testing "append entries to a vector and return the new vector -> vector to empty vector"
1111
(is (= [1 2 3 4] (list-ops/append [] [1 2 3 4])))))
1212

13-
(deftest test-e842efed-3bf6-4295-b371-4d67a4fdf19c
13+
(deftest append_test_3
1414
(testing "append entries to a vector and return the new vector -> empty vector to vector"
1515
(is (= [1 2 3 4] (list-ops/append [1 2 3 4] [])))))
1616

17-
(deftest test-71dcf5eb-73ae-4a0e-b744-a52ee387922f
17+
(deftest append_test_4
1818
(testing "append entries to a vector and return the new vector -> non-empty vectors"
1919
(is (= [1 2 2 3 4 5] (list-ops/append [1 2] [2 3 4 5])))))
2020

21-
(deftest test-28444355-201b-4af2-a2f6-5550227bde21
21+
(deftest concatenate_test_1
2222
(testing "concatenate a vector of vectors -> empty vector"
2323
(is (= [] (list-ops/concatenate [])))))
2424

25-
(deftest test-331451c1-9573-42a1-9869-2d06e3b389a9
25+
(deftest concatenate_test_2
2626
(testing "concatenate a vector of vectors -> vector of vectors"
2727
(is (= [1 2 3 4 5 6] (list-ops/concatenate [[1 2] [3] [] [4 5 6]])))))
2828

29-
(deftest test-d6ecd72c-197f-40c3-89a4-aa1f45827e09
29+
(deftest concatenate_test_3
3030
(testing "concatenate a vector of vectors -> vector of nested vectors"
3131
(is (= [[1] [2] [3] [] [4 5 6]] (list-ops/concatenate [[[1] [2]] [[3]] [[]] [[4 5 6]]])))))
3232

33-
(deftest test-0524fba8-3e0f-4531-ad2b-f7a43da86a16
33+
(deftest select-if_test_1
3434
(testing "filter vector returning only values that satisfy the filter function -> empty vector"
3535
(is (= [] (list-ops/select-if (fn [x] (= (mod x 2) 1)) [])))))
3636

37-
(deftest test-88494bd5-f520-4edb-8631-88e415b62d24
37+
(deftest select-if_test_2
3838
(testing "filter vector returning only values that satisfy the filter function -> non-empty vector"
3939
(is (= [1 3 5] (list-ops/select-if (fn [x] (= (mod x 2) 1)) [1 2 3 5])))))
4040

41-
(deftest test-1cf0b92d-8d96-41d5-9c21-7b3c37cb6aad
41+
(deftest length_test_1
4242
(testing "returns the length of a vector -> empty vector"
4343
(is (= 0 (list-ops/length [])))))
4444

45-
(deftest test-d7b8d2d9-2d16-44c4-9a19-6e5f237cb71e
45+
(deftest length_test_2
4646
(testing "returns the length of a vector -> non-empty vector"
4747
(is (= 4 (list-ops/length [1 2 3 4])))))
4848

49-
(deftest test-c0bc8962-30e2-4bec-9ae4-668b8ecd75aa
49+
(deftest apply-to-each_test_1
5050
(testing "return a vector of elements whose values equal the vector value transformed by the mapping function -> empty vector"
5151
(is (= [] (list-ops/apply-to-each (fn [x] (+ x 1)) [])))))
5252

53-
(deftest test-11e71a95-e78b-4909-b8e4-60cdcaec0e91
53+
(deftest apply-to-each_test_2
5454
(testing "return a vector of elements whose values equal the vector value transformed by the mapping function -> non-empty vector"
5555
(is (= [2 4 6 8] (list-ops/apply-to-each (fn [x] (+ x 1)) [1 3 5 7])))))
5656

57-
(deftest test-36549237-f765-4a4c-bfd9-5d3a8f7b07d2
57+
(deftest foldl_test_1
5858
(testing "folds (reduces) the given vector from the left with a function -> empty vector"
5959
(is (= 2 (list-ops/foldl (fn [acc el] (* el acc)) [] 2)))))
6060

61-
(deftest test-7a626a3c-03ec-42bc-9840-53f280e13067
61+
(deftest foldl_test_2
6262
(testing "folds (reduces) the given vector from the left with a function -> direction independent function applied to non-empty vector"
6363
(is (= 15 (list-ops/foldl (fn [acc el] (+ el acc)) [1 2 3 4] 5)))))
6464

65-
(deftest test-d7fcad99-e88e-40e1-a539-4c519681f390
65+
(deftest foldl_test_3
6666
(testing "folds (reduces) the given vector from the left with a function -> direction dependent function applied to non-empty vector"
6767
(is (= 64 (list-ops/foldl (fn [acc el] (/ el acc)) [1 2 3 4] 24)))))
6868

69-
(deftest test-17214edb-20ba-42fc-bda8-000a5ab525b0
69+
(deftest foldr_test_1
7070
(testing "folds (reduces) the given vector from the right with a function -> empty vector"
7171
(is (= 2 (list-ops/foldr (fn [acc el] (* el acc)) [] 2)))))
7272

73-
(deftest test-e1c64db7-9253-4a3d-a7c4-5273b9e2a1bd
73+
(deftest foldr_test_2
7474
(testing "folds (reduces) the given vector from the right with a function -> direction independent function applied to non-empty vector"
7575
(is (= 15 (list-ops/foldr (fn [acc el] (+ el acc)) [1 2 3 4] 5)))))
7676

77-
(deftest test-8066003b-f2ff-437e-9103-66e6df474844
77+
(deftest foldr_test_3
7878
(testing "folds (reduces) the given vector from the right with a function -> direction dependent function applied to non-empty vector"
7979
(is (= 9 (list-ops/foldr (fn [acc el] (/ el acc)) [1 2 3 4] 24)))))
8080

81-
(deftest test-94231515-050e-4841-943d-d4488ab4ee30
81+
(deftest reverse-order_test_1
8282
(testing "reverse the elements of the vector -> empty vector"
8383
(is (= [] (list-ops/reverse-order [])))))
8484

85-
(deftest test-fcc03d1e-42e0-4712-b689-d54ad761f360
85+
(deftest reverse-order_test_2
8686
(testing "reverse the elements of the vector -> non-empty vector"
8787
(is (= [7 5 3 1] (list-ops/reverse-order [1 3 5 7])))))
8888

89-
(deftest test-40872990-b5b8-4cb8-9085-d91fc0d05d26
89+
(deftest reverse-order_test_3
9090
(testing "reverse the elements of the vector -> vector of vectors is not flattened"
9191
(is (= [[4 5 6] [] [3] [1 2]] (list-ops/reverse-order [[1 2] [3] [] [4 5 6]])))))

0 commit comments

Comments
 (0)