-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add test of extract-header feature
refer: #280
- Loading branch information
Showing
2 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
source ../init.vim | ||
|
||
runtime plugin/wiki.vim | ||
|
||
" Test transform normal on regular markdown links using wiki style links | ||
silent edit ../wiki-basic/index.wiki | ||
7WikiLinkExtractHeader | ||
call assert_equal('[[NewPage|This page is new]]', getline(7)) | ||
|
||
silent edit! | ||
execute "normal ggV10j\<plug>(wiki-link-extract-header)" | ||
call assert_equal('[[NewPage|This page is new]]', getline(7)) | ||
call assert_equal('[[/sub/Foo|Foo]]', getline(9)) | ||
|
||
call wiki#test#finished() |