diff options
Diffstat (limited to 'vim/bundle/vim-table-mode/t/align.vim')
m--------- | vim/bundle/vim-table-mode | 0 | ||||
-rw-r--r-- | vim/bundle/vim-table-mode/t/align.vim | 20 |
2 files changed, 0 insertions, 20 deletions
diff --git a/vim/bundle/vim-table-mode b/vim/bundle/vim-table-mode new file mode 160000 +Subproject b613e39bd08ecebdb9b18100dae518050f49604 diff --git a/vim/bundle/vim-table-mode/t/align.vim b/vim/bundle/vim-table-mode/t/align.vim deleted file mode 100644 index 930504d..0000000 --- a/vim/bundle/vim-table-mode/t/align.vim +++ /dev/null @@ -1,20 +0,0 @@ -" vim: fdm=indent -source t/config/options.vim - -function! ConvertLines2Dict(lines) - let lines = [] - for idx in range(len(a:lines)) - call insert(lines, {"lnum": idx+1, "text": a:lines[idx]}) - endfor - return lines -endfunction - -describe 'Align' - it 'should align table content correctly' - Expect tablemode#align#Align(ConvertLines2Dict(readfile('t/fixtures/align/simple_before.txt'))) == ConvertLines2Dict(readfile('t/fixtures/align/simple_after.txt')) - end - - it 'should align table content with unicode characters correctly' - Expect tablemode#align#Align(ConvertLines2Dict(readfile('t/fixtures/align/unicode_before.txt'))) == ConvertLines2Dict(readfile('t/fixtures/align/unicode_after.txt')) - end -end |