commit 62baafe259214b0dc21f27090f4e3db367ff1ba0
parent 0181009dba3c5a353fa695c2fb82a4a502be1cf7
Author: Tinmarino <tinmarino@gmail.com>
Date: Wed, 9 Jun 2021 09:45:25 -0400
Test: link creation with dot #924
Diffstat:
1 file changed, 26 insertions(+), 2 deletions(-)
diff --git 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')\<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