mirror of
https://github.com/dhruvasagar/vim-table-mode.git
synced 2025-11-08 11:03:47 -05:00
17 lines
564 B
VimL
17 lines
564 B
VimL
source t/config/options.vim
|
|
source t/utils.vim
|
|
|
|
let s:test_file = 't/fixtures/table/sample_realign_before.txt'
|
|
function! s:setup()
|
|
call utils#TestSetup(s:test_file)
|
|
endfunction
|
|
call testify#setup(function('s:setup'))
|
|
call testify#teardown(function('utils#TestTeardown'))
|
|
|
|
function! s:TestRealign()
|
|
call tablemode#table#Realign(2)
|
|
call testify#assert#equals(getline(2, '$'), readfile('t/fixtures/table/sample_realign_after.txt'))
|
|
call utils#TestUndo(s:test_file)
|
|
endfunction
|
|
call testify#it('Realign should align table properly', function('s:TestRealign'))
|