diff --git a/test/link_creation.vader b/test/link_creation.vader index 1620a61..347f38b 100644 --- a/test/link_creation.vader +++ b/test/link_creation.vader @@ -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')\ + \\ + :AssertEqual 'filename.wiki', expand('%:t')\ + :call DeleteFile('%')\ + +Do(): + j + \\ + :AssertEqual 'filename.dot', expand('%:t')\ + :call DeleteFile('%')\ + +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()\ -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')\ :call vimwiki#base#linkify()\ -Expect(): +Expect(Markdown link): [GitHub - vimwiki/vimwiki: Personal Wiki for Vim](https://github.com/vimwiki/vimwiki) # Link Normalisation {{{1