Files
vim-table-mode/t/autoload/tablemode_test.vim
2023-03-01 07:22:48 +05:30

25 lines
852 B
VimL

source t/config/options.vim
function! s:TestTablemodeEnable()
silent call tablemode#Enable()
call testify#assert#assert(b:table_mode_active)
endfunction
call testify#it('tablemode#Enable should work', function('s:TestTablemodeEnable'))
function! s:TestTablemodeDisable()
silent call tablemode#Disable()
call testify#assert#assert(!b:table_mode_active)
endfunction
call testify#it('tablemode#Disable should work', function('s:TestTablemodeDisable'))
function! s:TestTablemodeToggle()
if exists('b:table_mode_active')
call testify#assert#assert(!b:table_mode_active)
endif
silent call tablemode#Toggle()
call testify#assert#assert(b:table_mode_active)
silent call tablemode#Toggle()
call testify#assert#assert(!b:table_mode_active)
endfunction
call testify#it('tablemode#Toggle should work', function('s:TestTablemodeToggle'))