Skip to content

Commit acae22a

Browse files
committed
Add tests for HeaderDecrease and HeaderIncrease
1 parent 3a96439 commit acae22a

File tree

1 file changed

+91
-0
lines changed

1 file changed

+91
-0
lines changed

test/header-decrease.vader

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
Given markdown;
2+
# a
3+
4+
## b
5+
6+
### c
7+
8+
#### d
9+
10+
##### e
11+
12+
Execute (HeaderIncrease without forbidden level):
13+
:HeaderIncrease
14+
15+
Expect (increase level of all headers):
16+
## a
17+
18+
### b
19+
20+
#### c
21+
22+
##### d
23+
24+
###### e
25+
26+
Given markdown;
27+
# a
28+
29+
###### b
30+
31+
Execute (HeaderIncrease with forbidden level):
32+
:HeaderIncrease
33+
34+
Expect (no changes):
35+
# a
36+
37+
###### b
38+
39+
Given markdown;
40+
## a
41+
42+
### b
43+
44+
#### c
45+
46+
##### d
47+
48+
###### e
49+
50+
Execute (HeaderDecrease without forbidden level):
51+
:HeaderDecrease
52+
53+
Expect (decrease level of all headers):
54+
# a
55+
56+
## b
57+
58+
### c
59+
60+
#### d
61+
62+
##### e
63+
64+
Given markdown;
65+
# a
66+
67+
## b
68+
69+
### c
70+
71+
#### d
72+
73+
##### e
74+
75+
###### f
76+
77+
Execute (HeaderDecrease with forbidden level):
78+
:HeaderDecrease
79+
80+
Expect (no changes):
81+
# a
82+
83+
## b
84+
85+
### c
86+
87+
#### d
88+
89+
##### e
90+
91+
###### f

0 commit comments

Comments
 (0)