mirror of
https://github.com/dhruvasagar/vim-table-mode.git
synced 2025-11-08 02:53:48 -05:00
20 lines
373 B
VimL
20 lines
373 B
VimL
function! utils#TestSetup(file) abort
|
|
new
|
|
silent! exec 'read' a:file
|
|
endfunction
|
|
|
|
function! utils#TestTeardown() abort
|
|
bw!
|
|
endfunction
|
|
|
|
function! utils#TestUndo(file) abort
|
|
:%delete
|
|
silent! exec 'read' a:file
|
|
endfunction
|
|
|
|
function! utils#TableTest(tests) abort
|
|
for test in a:tests
|
|
call testify#assert#equals(test.actual, test.expected)
|
|
endfor
|
|
endfunction
|