X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/20c7e83b58359cee70cad87c221f27045aca425e..0ee596c5c5e11fc79598407eaf22f83d279f7e9e:/.vim/bundle/vim-markdown/test/table-format.vader diff --git a/.vim/bundle/vim-markdown/test/table-format.vader b/.vim/bundle/vim-markdown/test/table-format.vader index 2fc06a39..f7028cb0 100644 --- a/.vim/bundle/vim-markdown/test/table-format.vader +++ b/.vim/bundle/vim-markdown/test/table-format.vader @@ -30,6 +30,19 @@ Expect (table is not modified): |---|---| | c | d | +Given markdown (indented table); + | a | b | + |---|---| + | c | d | + +Execute (format well formatted, indented table): + TableFormat + +Expect (table is not modified): + | a | b | + |---|---| + | c | d | + Given markdown; | left |right| center || | :- | --: |:---:|:| @@ -42,3 +55,31 @@ Expect (preserve colons to align text): | left | right | center | | |:-----|------:|:------:|:--| | left | right | center | | + +Given markdown (indented table with colons); + | left |right| center || + | :- | --: |:---:|:| + | left |right| center || + +Execute (format indented table with colons): + TableFormat + +Expect (preserve colons to align text): + | left | right | center | | + |:-----|------:|:------:|:--| + | left | right | center | | + +Given markdown (borderless table); + left |right| center + :- | --: |:---: + left |right| center + +Execute (format borderless table): + let g:vim_markdown_borderless_table = 1 + TableFormat + unlet g:vim_markdown_borderless_table + +Expect (table with borders): + | left | right | center | + |:-----|------:|:------:| + | left | right | center |