File: issue_1298_table_multichar_cell.md

package info (click to toggle)
vim-vimwiki 2024.01.24-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,692 kB
  • sloc: sh: 313; makefile: 2
file content (45 lines) | stat: -rw-r--r-- 1,266 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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 │   │   │   │   │
  │-------------│---│---│---│---│
  │             │   │   │   │   │