1
- Execute (reset indent options to initial values):
2
- " so it is clear what values later tests are working with
3
- setglobal noexpandtab tabstop=8 softtabstop=0 shiftwidth=8
4
-
5
- " Compatibility warning: these tests inspect `shiftwidth()`. If you get errors because your Vim is too old to have `shiftwidth()`, replace them locally with `&shiftwidth`. I use `shiftwidth()` instead of `&shiftwidth` to support possible future usage of the 0 value for 'shiftwidth', and to make the writers of language indent plugins aware of the need to migrate from checking `&sw` to checking `shiftwidth()`.
1
+ Include: _setup.vader
6
2
7
3
After:
8
4
" close the file that was just tested and its tab, and forget about it
@@ -15,7 +11,7 @@ Execute (Coursera-The_Hardware-Software_Interface-lab1-bits.c: expandtab):
15
11
Execute (TODO: Coursera-The_Hardware-Software_Interface-lab1-bits.c: shiftwidth):
16
12
tabnew tests/fixtures/Coursera-The_Hardware-Software_Interface-lab1-bits.c
17
13
DetectIndent
18
- AssertEqual 2, shiftwidth ()
14
+ AssertEqual 2, Shiftwidth ()
19
15
20
16
Execute (FountainMusic-FMDisplayItem.c: expandtab):
21
17
tabnew tests/fixtures/FountainMusic-FMDisplayItem.c
@@ -24,55 +20,55 @@ Execute (FountainMusic-FMDisplayItem.c: expandtab):
24
20
Execute (TODO: FountainMusic-FMDisplayItem.c: shiftwidth):
25
21
tabnew tests/fixtures/FountainMusic-FMDisplayItem.c
26
22
DetectIndent
27
- AssertEqual 8, shiftwidth ()
23
+ AssertEqual 8, Shiftwidth ()
28
24
29
25
Execute (FountainMusic-FMDisplayItem.h):
30
26
tabnew tests/fixtures/FountainMusic-FMDisplayItem.h
31
27
DetectIndent
32
28
AssertEqual 0, &expandtab
33
- AssertEqual 8, shiftwidth ()
29
+ AssertEqual 8, Shiftwidth ()
34
30
35
31
Execute (GameOfLife.plaid – badly mixed indentation):
36
32
tabnew tests/fixtures/GameOfLife.plaid
37
33
DetectIndent
38
34
AssertEqual 0, &expandtab
39
- AssertEqual 2, shiftwidth ()
35
+ AssertEqual 2, Shiftwidth ()
40
36
41
37
Execute (general-level-1.indentc):
42
38
tabnew tests/fixtures/general-level-1.indentc
43
39
DetectIndent
44
40
AssertEqual 0, &expandtab
45
- AssertEqual 8, shiftwidth ()
41
+ AssertEqual 8, Shiftwidth ()
46
42
47
43
Execute (haml-action_view.haml):
48
44
tabnew tests/fixtures/haml-action_view.haml
49
45
DetectIndent
50
46
AssertEqual 1, &expandtab
51
- AssertEqual 2, shiftwidth ()
47
+ AssertEqual 2, Shiftwidth ()
52
48
53
49
Execute (haml-render_layout.haml):
54
50
tabnew tests/fixtures/haml-render_layout.haml
55
51
DetectIndent
56
52
AssertEqual 1, &expandtab
57
- AssertEqual 2, shiftwidth ()
53
+ AssertEqual 2, Shiftwidth ()
58
54
59
55
Execute (jSnake-demo.html):
60
56
tabnew tests/fixtures/jSnake-demo.html
61
57
DetectIndent
62
58
AssertEqual 1, &expandtab
63
- AssertEqual 2, shiftwidth ()
59
+ AssertEqual 2, Shiftwidth ()
64
60
65
61
Execute (jSnake-snake3.js):
66
62
tabnew tests/fixtures/jSnake-snake3.js
67
63
DetectIndent
68
64
AssertEqual 1, &expandtab
69
- AssertEqual 2, shiftwidth ()
65
+ AssertEqual 2, Shiftwidth ()
70
66
71
67
Execute (parslet-scope.rb):
72
68
tabnew tests/fixtures/parslet-scope.rb
73
69
DetectIndent
74
70
AssertEqual 1, &expandtab
75
- AssertEqual 2, shiftwidth ()
71
+ AssertEqual 2, Shiftwidth ()
76
72
77
73
Execute (TODO: semver.md – no indentation at all: expandtab):
78
74
tabnew tests/fixtures/semver.md
@@ -81,7 +77,7 @@ Execute (TODO: semver.md – no indentation at all: expandtab):
81
77
Execute (TODO: semver.md – no indentation at all: shiftwidth):
82
78
tabnew tests/fixtures/semver.md
83
79
DetectIndent
84
- AssertEqual 8, shiftwidth ()
80
+ AssertEqual 8, Shiftwidth ()
85
81
86
82
Execute (starbuzz_beverage_cost_calculator-core.clj: expandtab):
87
83
tabnew tests/fixtures/starbuzz_beverage_cost_calculator-core.clj
@@ -90,7 +86,7 @@ Execute (starbuzz_beverage_cost_calculator-core.clj: expandtab):
90
86
Execute (TODO: starbuzz_beverage_cost_calculator-core.clj: shiftwidth):
91
87
tabnew tests/fixtures/starbuzz_beverage_cost_calculator-core.clj
92
88
DetectIndent
93
- AssertEqual 2, shiftwidth ()
89
+ AssertEqual 2, Shiftwidth ()
94
90
95
91
Execute (vared.fish: expandtab):
96
92
tabnew tests/fixtures/vared.fish
@@ -99,4 +95,4 @@ Execute (vared.fish: expandtab):
99
95
Execute (TODO: vared.fish: shiftwidth):
100
96
tabnew tests/fixtures/vared.fish
101
97
DetectIndent
102
- AssertEqual 8, shiftwidth ()
98
+ AssertEqual 8, Shiftwidth ()
0 commit comments