@@ -7,7 +7,7 @@ It uses the fact that most exercises defined in the [problem-specifications repo
7
7
8
8
To generate a practice exercise's tests, the test generator:
9
9
10
- 1 . Reads the exercise's test cases from its [ ` canonical-data.json ` file]
10
+ 1 . Reads the exercise's test cases from its ` canonical-data.json ` file
11
11
2 . Uses ` tests.toml ` file to omit and excluded test cases
12
12
3 . Transforms the test cases (optional)
13
13
4 . Renders the test cases using the exercise's generator template
@@ -42,7 +42,7 @@ There are two ways in which you can transform test cases:
42
42
To update individual test cases, define the following function:
43
43
44
44
``` clojure
45
- (defn- transform -test-case
45
+ (defn update -test-case
46
46
" Update a test case"
47
47
[test-case]
48
48
; ; function body
@@ -56,24 +56,24 @@ This example removes all but the last element of the `:path` value (shortening t
56
56
``` clojure
57
57
(ns difference-of-squares-generator )
58
58
59
- (defn- transform -test-case [test-case]
59
+ (defn update -test-case [test-case]
60
60
(update test-case :path #(take-last 1 %)))
61
61
```
62
62
63
63
#### Add or remove test case(s)
64
64
65
- To update individual test cases, define the following function:
65
+ To add or remove test cases, define the following function:
66
66
67
67
``` clojure
68
- (defn- transform -test-cases
68
+ (defn add-remove -test-cases
69
69
" Add/remove test case(s)"
70
70
[test-cases]
71
71
; ; function body
72
72
)
73
73
```
74
74
75
75
``` exercism/note
76
- If you define _both_ functions, `transform- test-cases` is called first and `transform -test-case` second.
76
+ If you define _both_ functions, `add-remove- test-cases` is called first and `update -test-case` second.
77
77
```
78
78
79
79
### Step 4: render the test cases
0 commit comments