Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit65b9f0e

Browse files
committed
CI: add test for tag in codeblock should not be parsed (issue#1034)
1 parentc79f15a commit65b9f0e

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed

‎test/tag.vader

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,3 +553,81 @@ Expect (Content appended at tags):
553553
Execute (Clean file for tag #1316):
554554
call system("rm $HOME/testmarkdown/.vimwiki_tags")
555555
call system("rm $HOME/testmarkdown/Test-Tag-issue-1316-bis.md")
556+
557+
558+
Execute (Clean):
559+
call system("rm $HOME/testmarkdown/.vimwiki_tags")
560+
unlet g:vimwiki_tag_format
561+
unlet g:vimwiki_syntaxlocal_vars
562+
call vimwiki#vars#init()
563+
564+
565+
Do (Md: #1034: Create File with tag in code for issue #1034):
566+
:edit $HOME/testmarkdown/Test-Tag-issue-1034.md\<CR>
567+
I
568+
# Line1: Heading
569+
Some line\<Cr>
570+
# Line2: Tag not in header
571+
```bash\<Cr>
572+
# Line3: Tag in header
573+
this is bash code with :tag1:\<Cr>
574+
# Line4: empty
575+
```\<Cr>
576+
# Line5: tag2
577+
and :tag2:\<Cr>
578+
\<Esc>
579+
:write\<CR>
580+
:VimwikiRebuildTags!\<CR>
581+
582+
583+
Do (Md: #1034: Append something at mono tag):
584+
:edit $HOME/testmarkdown/Test-Tag-issue-1034.md\<CR>
585+
ggdG
586+
:read $HOME/testmarkdown/.vimwiki_tags\<CR>
587+
G
588+
:g/^!/d\<CR>
589+
oContent\<Esc>
590+
591+
592+
Expect (Md: #1034: Can see tag2 but not tag1 as in code):
593+
tag2Test-Tag-issue-1034.md5;"vimwiki:Test-Tag-issue-1034\tTest-Tag-issue-1034#tag2\tTest-Tag-issue-1034#tag2
594+
Content
595+
596+
597+
Do (Wiki: #1034: Create File with tag in code for issue #1034):
598+
:edit $HOME/testwiki/Test-Tag-issue-1034.wiki\<CR>
599+
I
600+
# Line1: Heading
601+
Some line\<Cr>
602+
# Line2: Tag not in header
603+
{{{bash\<Cr>
604+
# Line3: Tag in header
605+
this is bash code with :tag1:\<Cr>
606+
# Line4: empty
607+
}}}\<Cr>
608+
# Line5: tag2
609+
and :tag2:\<Cr>
610+
\<Esc>
611+
:write\<CR>
612+
:VimwikiRebuildTags!\<CR>
613+
614+
615+
Do (Wiki: #1034: Append something at mono tag):
616+
:edit $HOME/testwiki/Test-Tag-issue-1034.wiki\<CR>
617+
ggdG
618+
:read $HOME/testwiki/.vimwiki_tags\<CR>
619+
G
620+
:g/^!/d\<CR>
621+
oContent\<Esc>
622+
623+
624+
Expect (Wiki: #1034: Can see tag2 but not tag1 as in code):
625+
tag2Test-Tag-issue-1034.wiki5;"vimwiki:Test-Tag-issue-1034\tTest-Tag-issue-1034#tag2\tTest-Tag-issue-1034#tag2
626+
Content
627+
628+
629+
Execute (#1034: Clean file for tag #1034):
630+
call system("rm $HOME/testmarkdown/.vimwiki_tags")
631+
call system("rm $HOME/testwiki/.vimwiki_tags")
632+
call system("rm $HOME/testmarkdown/Test-Tag-issue-1013.md")
633+
call system("rm $HOME/testwiki/Test-Tag-issue-1013.wiki")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp