Test: link creation with dot #924
This commit is contained in:
@@ -4,6 +4,30 @@
|
||||
# in OS windows, linux
|
||||
# Seems easy but tests are reaaly needed here
|
||||
|
||||
# Links with dot {{{1
|
||||
# Issue #924
|
||||
# See for spec: https://github.com/vimwiki/vimwiki/issues/924#issuecomment-672837685
|
||||
####################
|
||||
|
||||
Given vimwiki (filename filename.dot):
|
||||
filename
|
||||
filename.dot
|
||||
|
||||
Do():
|
||||
:call SetSyntax('default')\<CR>
|
||||
\<CR>\<CR>
|
||||
:AssertEqual 'filename.wiki', expand('%:t')\<CR>
|
||||
:call DeleteFile('%')\<CR>
|
||||
|
||||
Do():
|
||||
j
|
||||
\<CR>\<CR>
|
||||
:AssertEqual 'filename.dot', expand('%:t')\<CR>
|
||||
:call DeleteFile('%')\<CR>
|
||||
|
||||
Expect(Nothing left):
|
||||
|
||||
|
||||
# Linkify function {{{1
|
||||
# Issue #994
|
||||
####################
|
||||
@@ -14,7 +38,7 @@ Given vimwiki (abc def ghi jkl):
|
||||
Do(call linkify):
|
||||
:call vimwiki#base#linkify()\<CR>
|
||||
|
||||
Expect():
|
||||
Expect(Wiki link):
|
||||
[[https://github.com/vimwiki/vimwiki|GitHub - vimwiki/vimwiki: Personal Wiki for Vim]]
|
||||
|
||||
|
||||
@@ -22,7 +46,7 @@ Do(md: call linkify):
|
||||
:call SetSyntax('markdown')\<CR>
|
||||
:call vimwiki#base#linkify()\<CR>
|
||||
|
||||
Expect():
|
||||
Expect(Markdown link):
|
||||
[GitHub - vimwiki/vimwiki: Personal Wiki for Vim](https://github.com/vimwiki/vimwiki)
|
||||
|
||||
# Link Normalisation {{{1
|
||||
|
||||
Reference in New Issue
Block a user