From 62baafe259214b0dc21f27090f4e3db367ff1ba0 Mon Sep 17 00:00:00 2001 From: Tinmarino Date: Wed, 9 Jun 2021 09:45:25 -0400 Subject: [PATCH] Test: link creation with dot #924 --- test/link_creation.vader | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) 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