vimwiki

Personal wiki for vim
git clone https://github.com/vimwiki/vimwiki.git
Log | Files | Refs | README | LICENSE

commit 942da42b96251b5b9bef4e54bb79884ebf86c1f4
parent c5b7f7e76f7d9b07036948a2f9c1d6cd0167e884
Author: Tinmarino <tinmarino@gmail.com>
Date:   Thu, 22 Jun 2023 19:33:54 -0400

CI: add test for unicode rxTableSep (issue #1297)

Diffstat:
Atest/issue_1298_table_multichar_cell.md | 45+++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+), 0 deletions(-)

diff --git a/test/issue_1298_table_multichar_cell.md b/test/issue_1298_table_multichar_cell.md @@ -0,0 +1,45 @@ +# Non regression tests for issue TODO +# -- TODO copy-paste issue description +# +# Syntax: https://github.com/junegunn/vader.vim#syntax-of-vader-file +# Run: bash run_tests.sh -v -t vader -n vim_7.3.429 -f issue_example.vader + +Given vimwiki (Empty file): + + +Execute (Set vimwiki property rxTableSep): + call SetSyntax('markdown') + call vimwiki#vars#set_syntaxlocal('rxTableSep', '│' ) + AssertEqual '│', vimwiki#vars#get_syntaxlocal('rxTableSep'), "Conf has been changed" + + +Execute(VimwikiTable): + VimwikiTable + +Expect (Unicode table created): + + │ │ │ │ │ │ + │---│---│---│---│---│ + │ │ │ │ │ │ + + +Given vimwiki (Unicode table): + │ bla bla bla │ │ │ │ │ + │---│---│---│---│---│ + │ │ │ │ │ │ + + +Execute (Rename file wiki_test.md for table expand): + file wiki_test.md + call SetSyntax('markdown') + call vimwiki#vars#set_syntaxlocal('rxTableSep', '│' ) + + +Do (Expand table): + :AssertEqual '│', vimwiki#vars#get_syntaxlocal('rxTableSep'), "Conf has been changed"\<Cr> + A + +Expect (Unicode table expanded): + │ bla bla bla │ │ │ │ │ + │-------------│---│---│---│---│ + │ │ │ │ │ │