Commit 5ebc065
authored
Add test generator (#1722)
* cleanup dev tooling
* move all scripts into `bin/`
* turn several scripts into Rust tests:
* `check_exercises_for_authors.sh`
* `count_ignores.sh`
* `verify_exercise_difficulty.sh`
* `lint_tool_file_names.sh`
* `lint_trailing_spaces.sh`
* remove several scripts:
* `check_uuids.sh`:
`configlet lint` covers that already
* `ensure_lib_src_rs_exists.sh`:
this is not an issue if exercise stubs are generated
* `clean_topics_vs_practices.py`:
applies undocumented standards (max 10 practice exercises per topic)
* `fetch_canonical_data`:
we now have the submodule for this
* cleanup documentation
* remove generic instructions about WSL
* merge `CONTRIBUTING.md` and `maintaining.md`
* move contributing docs in `README.md` to `CONTRIBUTING.md`
* outsource instructions for making good PRs
* outsource instructions for installing Rust
* steal beautiful `REAMDE.md` from Python track
* apply conventions and guidelines in a couple places
where the new Rust tests found deficiencies
* replace Bash-based exercise generation with Rust-based one
(deleting the related `util/` Rust crates)
* can be used to sync with problem-specifications too
* uses the Tera templating engine for customizable test generation
inspired by the python track using Jinja for this purpose
* apply test generation to acronym exercise to validate MVP1 parent 9800892 commit 5ebc065
87 files changed
Lines changed: 2385 additions & 1402 deletions
File tree
- .github/workflows
- _test
- bin
- generator-utils
- concepts
- methods
- references
- docs
- exercises
- concept
- magazine-cutout/.docs
- role-playing-game/.docs
- short-fibonacci/.docs
- practice
- acronym
- .docs
- .meta
- tests
- allergies/.approaches
- vec-when-requested
- binary-search/.approaches
- looping
- recursion
- collatz-conjecture/.docs
- dot-dsl/.docs
- isogram/.approaches/filter-all
- ocr-numbers/.docs
- rna-transcription/.docs
- secret-handshake/.approaches
- iterate-once
- simple-linked-list
- .approaches
- do-not-keep-track-of-length
- .docs
- space-age/.docs
- rust-tooling
- src
- bin
- tests
- util
- escape_double_quotes
- src
- utils
- tests
- ngram
- src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 15 | | |
46 | 16 | | |
47 | 17 | | |
48 | 18 | | |
49 | 19 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | 20 | | |
58 | 21 | | |
59 | 22 | | |
| |||
68 | 31 | | |
69 | 32 | | |
70 | 33 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | 34 | | |
76 | 35 | | |
77 | 36 | | |
| |||
80 | 39 | | |
81 | 40 | | |
82 | 41 | | |
83 | | - | |
| 42 | + | |
84 | 43 | | |
85 | 44 | | |
86 | 45 | | |
87 | 46 | | |
88 | 47 | | |
89 | 48 | | |
90 | 49 | | |
91 | | - | |
92 | | - | |
93 | 50 | | |
94 | 51 | | |
95 | 52 | | |
96 | 53 | | |
97 | 54 | | |
98 | 55 | | |
99 | | - | |
100 | 56 | | |
101 | 57 | | |
102 | | - | |
103 | 58 | | |
104 | 59 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | 60 | | |
113 | 61 | | |
114 | 62 | | |
| |||
117 | 65 | | |
118 | 66 | | |
119 | 67 | | |
120 | | - | |
121 | 68 | | |
122 | 69 | | |
123 | | - | |
124 | | - | |
125 | | - | |
| 70 | + | |
| 71 | + | |
126 | 72 | | |
127 | 73 | | |
128 | 74 | | |
129 | | - | |
130 | | - | |
131 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
132 | 90 | | |
| 91 | + | |
| 92 | + | |
133 | 93 | | |
134 | 94 | | |
135 | 95 | | |
| |||
144 | 104 | | |
145 | 105 | | |
146 | 106 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | 107 | | |
151 | | - | |
| 108 | + | |
152 | 109 | | |
153 | 110 | | |
154 | 111 | | |
| |||
166 | 123 | | |
167 | 124 | | |
168 | 125 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | 126 | | |
175 | 127 | | |
176 | 128 | | |
| |||
179 | 131 | | |
180 | 132 | | |
181 | 133 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | 134 | | |
188 | 135 | | |
189 | 136 | | |
190 | | - | |
| 137 | + | |
191 | 138 | | |
192 | 139 | | |
193 | 140 | | |
194 | 141 | | |
195 | | - | |
| 142 | + | |
196 | 143 | | |
197 | 144 | | |
198 | 145 | | |
199 | 146 | | |
200 | 147 | | |
201 | 148 | | |
202 | 149 | | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | 150 | | |
211 | 151 | | |
212 | 152 | | |
| |||
217 | 157 | | |
218 | 158 | | |
219 | 159 | | |
220 | | - | |
221 | | - | |
| 160 | + | |
| 161 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 6 | + | |
12 | 7 | | |
13 | 8 | | |
14 | | - | |
15 | 9 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments