Skip to content

Commit 6a4e1ec

Browse files
committed
Added index_manual_test.vim
1 parent 1374548 commit 6a4e1ec

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

test/index_manual_test.vim

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
vim9script
2+
3+
message clear
4+
5+
def g:Foo()
6+
echom "Fatto!"
7+
enddef
8+
9+
var test = [
10+
["file", 'C:\Users\yt75534\vimfiles\plugins\vim-markdown-extras\testfile.md'],
11+
["link", 'https://example.com'],
12+
["func", "function('g:Cazzo')"],
13+
["empty", ""],
14+
["wrong_type", 12234],
15+
["func_lambda", string(() => 'echo "ECCOLA!"')],
16+
]
17+
18+
var test_safe = [
19+
["file", 'C:\Users\yt75534\vimfiles\plugins\vim-markdown-extras\testfile.md'],
20+
["link", 'https://example.com'],
21+
["global_func", "function('g:Foo')"],
22+
]
23+
execute $"MDEIndex {test_safe}"

0 commit comments

Comments
 (0)