]> git.madduck.net Git - etc/vim.git/blob - test/toc.vader

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

64831e45fa530e9137a91edab07b1403630031b7
[etc/vim.git] / test / toc.vader
1 Given markdown;
2 # a
3
4 Execute (Toc does not set nomodifiable on other files):
5   " Sanity check.
6   Assert &modifiable
7
8   :Toc
9   :lclose
10   :edit a
11
12   Assert &modifiable
13
14 Given markdown;
15 header 1
16 ========
17
18 test
19
20 header 2
21 --------
22
23 test
24
25 ### header 3
26
27 test
28
29 Execute (Toc setex headers):
30   :Toc
31
32 Expect (setex headers):
33   header 1
34     header 2
35       header 3
36
37 Given markdown;
38 # header 1
39
40 test
41
42 ## header 2
43
44 test
45
46 ### header 3
47
48 test
49
50 Execute (Toc atx headers):
51   :Toc
52
53 Expect (atx headers):
54   header 1
55     header 2
56       header 3