-
Notifications
You must be signed in to change notification settings - Fork 6
Commit b21188c
Rewrite indentation testing code (#26)
Benefits of new solution:
1. Faster (runs indentation tests in parallel)
- On GitHub Actions, the tests now finish >10 seconds quicker, but we will see a greater benefit when I add more indentation tests (hopefully soon).
2. Less code
3. Adding new indentation test cases doesn't require editing the indent_test.clj Clojure file anymore
4. Fixed issues with the test vimrc so tests now work on newer Vim versions (previously they only worked on Vim 8.1 and below)
5. Can now set different config options per-test
6. Indentation tests now all pass on my computer
Now we're in a good position to start adding more indentation tests.1 parent 61c73fc commit b21188c
File tree
22 files changed
+94
-129
lines changed- .github/workflows
- clj
- .clj-kondo
- resources/indent-test-cases
- basic-sexp
- dispach-macro
- inherit-indentation
- letfn
- multibyte-indentation
- reader-conditional
- side-effects-in-indentexpr
- test/vim
- vim
22 files changed
+94
-129
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 | - | ||
32 | + | ||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | - | ||
2 | - | ||
1 | + | ||
3 | 2 |
|
Lines changed: 0 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 | - | ||
7 | - |
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + |
Lines changed: 0 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
30 | - | ||
31 | - |
Lines changed: 0 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
30 | - | ||
31 | - |
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + |
Lines changed: 0 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
38 | - | ||
39 | - |
0 commit comments